From 94ef2518cebe71fd549f32f3c0caa5daab747537 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 20 Jul 2009 22:20:16 +0200 Subject: corrected some stupid, wrong code --- code/directory.rb | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0