diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/directory.rb | 2 | ||||
-rw-r--r-- | code/fm.rb | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/code/directory.rb b/code/directory.rb index 6099d891..e7431399 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -198,7 +198,7 @@ class Directory oldfile = @pointed_file read_dir get_file_info - sort_if_needed + sort if @files.include? oldfile self.pointed_file = oldfile diff --git a/code/fm.rb b/code/fm.rb index 168885d4..84cac712 100644 --- a/code/fm.rb +++ b/code/fm.rb @@ -71,7 +71,7 @@ module Fm def refresh() begin - @pwd.refresh + @pwd.refresh! update_pointers draw rescue @@ -240,7 +240,8 @@ module Fm def update_pointers @path.each_with_index do |p, i| - p.schedule + ## is this line necessary? +# p.schedule unless i == @path.size - 1 p.pointed_file = @path[i+1].path end |