commit cd38e393703c600839133991ef9015acdc4c0f4d
parent 6421200176dd8f27815e1d37ce10448d4f24d41f
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 13 Jan 2008 17:23:49 -0800
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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