1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-04-16 02:15:43 +02:00

Fixed normalizeColumn

This commit is contained in:
rmaddy 2003-05-13 22:21:32 +00:00
parent 45921c7bcf
commit 8d461e62e4

View File

@ -300,7 +300,7 @@ public class EditorHelper
*/
public static int normalizeColumn(Editor editor, int lline, int col)
{
col = Math.min(Math.max(0, col), getLineLength(editor, lline) - 1);
col = Math.min(Math.max(0, getLineLength(editor, lline) - 1), col);
return col;
}