diff options
-rw-r--r-- | code/directory.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/directory.rb b/code/directory.rb index 870ecbb1..ef4f1ba6 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -69,7 +69,7 @@ class Directory # end @pos = x make_sure_cursor_is_in_range() - @pointed_file = @files[x] + @pointed_file = @files_raw[x] resize end @@ -89,7 +89,7 @@ class Directory def make_sure_cursor_is_in_range() if @files.size <= 1 or @pos < 0 @pos = 0 - elsif @pos > @files.size + elsif @pos > @files.size - 1 @pos = @files.size - 1 end end |