Merge pull request #115 from JackDanger/sleep-when-curses-is-unavailable

Sleep when curses is unavailable
This commit is contained in:
Junegunn Choi 2015-01-02 15:28:33 +09:00
commit 4ceb520c1d

1
fzf
View File

@ -40,6 +40,7 @@ begin
require 'curses' require 'curses'
rescue LoadError rescue LoadError
$stderr.puts 'curses gem is not installed. Try `gem install curses`.' $stderr.puts 'curses gem is not installed. Try `gem install curses`.'
sleep 1
exit 1 exit 1
end end
require 'thread' require 'thread'