about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-22 00:21:29 +0200
committerhut <hut@lavabit.com>2009-06-22 00:21:29 +0200
commit8e64767fff2746c1fa501d59e53db6bc22018cb6 (patch)
tree46f077f7ab8d1187bff0d1a3bea2224f2ed46aa7 /code
parent9f55a155d241e102812ea6b5acf60f8f159c9e44 (diff)
downloadranger-8e64767fff2746c1fa501d59e53db6bc22018cb6.tar.gz
fixed bug when going to a nonexistent dir
Diffstat (limited to 'code')
-rw-r--r--code/fm.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/fm.rb b/code/fm.rb
index b5ef5c1a..1b3e8b69 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -164,6 +164,7 @@ module Fm
 		@pwd.restore if @pwd
 		@marked = []
 		dir = File.expand_path(dir)
+		return unless File.exists? dir
 
 		oldpath = @path.dup