]> git.cworth.org Git - sup/commitdiff
bugfix: jump_to_col should only jump to a multiple of COL_JUMP
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 13 Jan 2008 06:30:53 +0000 (22:30 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 13 Jan 2008 07:04:06 +0000 (23:04 -0800)
lib/sup/modes/scroll-mode.rb

index ff725185fcb17fd52ec8ce05c72b6929748efc37..74783e5a8c1007ed71cd08c8aca8db58416bdbe8 100644 (file)
@@ -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