From cd38e393703c600839133991ef9015acdc4c0f4d Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 13 Jan 2008 17:23:49 -0800 Subject: [PATCH] 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. --- lib/sup/modes/file-browser-mode.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.45.2