commit 93179588f3009c53886bfac1aac805ca91cf0e5d
parent fe7178c70cec9f4bcdeadea4a1d4874a9c7004a2
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 12 Jan 2008 22:30:53 -0800
bugfix: jump_to_col should only jump to a multiple of COL_JUMP
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb
@@ -101,6 +101,7 @@ class ScrollMode < Mode
end
def jump_to_col col
+ col = col - (col % COL_JUMP)
buffer.mark_dirty unless @leftcol == col
@leftcol = col
end