about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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