Fix fish widget changing tty settings (#296)

This commit is contained in:
densa-inc 2020-03-20 12:43:31 +01:00
parent 790e24ea49
commit 1986dd4caf

View file

@ -6,9 +6,12 @@ end
function navi-widget -d "Show cheat sheets"
begin
set ttysettings (stty -g)
stty sane
__call_navi | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result
stty $ttysettings
end
commandline -f repaint
end