From 8e64767fff2746c1fa501d59e53db6bc22018cb6 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 22 Jun 2009 00:21:29 +0200 Subject: fixed bug when going to a nonexistent dir --- code/fm.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'code') 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 -- cgit 1.4.1-2-gfad0