commit 37a623c9da8fd711bf522e444e4772bc185ab340
parent 7ecb464b8ab72c21eb4be5759fd90bd8103cd0a5
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Thu, 23 Sep 2010 12:29:59 +0200
Update status on jump on line in line-cursor-mode
The line number isn't updated in the status field when you jump to the
end or beginning, or do page up or down before the next redraw is done.
Updating the status manually in set_cursor_pos.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
@@ -66,6 +66,7 @@ protected
return if @curpos == p
@curpos = p.clamp @cursor_top, lines
buffer.mark_dirty
+ set_status
end
## override search behavior to be cursor-based. this is a stupid