* [PATCH] Update status on jump on line in line-cursor-mode
@ 2010-09-23 10:37 Gaute Hope
0 siblings, 0 replies; only message in thread
From: Gaute Hope @ 2010-09-23 10:37 UTC (permalink / raw)
To: sup-devel
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.
---
lib/sup/modes/line-cursor-mode.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
index 1bd4ed1..1cae994 100644
--- 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
--
1.7.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-23 10:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 10:37 [PATCH] Update status on jump on line in line-cursor-mode Gaute Hope
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox