Sleep when curses is unavailable
When the curses gem is not installed and the session is running inside tmux the user will see a flash of an opened and closed tmux pane but will not have a chance to read the error message.
This commit is contained in:
parent
7ba93d9f83
commit
d761ea5158
1
fzf
1
fzf
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user