From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (158-37-227-86.hib.no [158.37.227.86]) by mx.google.com with ESMTPS id a48sm999128eei.1.2010.09.23.03.37.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Sep 2010 03:37:39 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 From: Gaute Hope To: sup-devel Subject: [PATCH] Update status on jump on line in line-cursor-mode Date: Thu, 23 Sep 2010 12:37:34 +0200 Message-Id: <1285238213-sup-3935@dolk> User-Agent: Sup/git Content-Transfer-Encoding: 8bit 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