From: William Morgan Date: Mon, 14 Jan 2008 01:23:49 +0000 (-0800) Subject: bugfix: file-browser-mode should reset the cursor when entering a new dir X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=cd38e393703c600839133991ef9015acdc4c0f4d;p=sup bugfix: file-browser-mode should reset the cursor when entering a new dir Otherwise, entering a new directory can start with the cursor and page at a weird location, e.g. with the very last file appearing at the top of the screen. --- diff --git a/lib/sup/modes/file-browser-mode.rb b/lib/sup/modes/file-browser-mode.rb index 3c68eec..b49f3f4 100644 --- a/lib/sup/modes/file-browser-mode.rb +++ b/lib/sup/modes/file-browser-mode.rb @@ -38,6 +38,7 @@ protected def reload regen_text + jump_to_start buffer.mark_dirty end