Merge pull request #297 from DenSA-Inc/fish-fix

Fix fish widget changing tty settings (#296)
This commit is contained in:
Denis Isidoro 2020-03-20 09:14:02 -03:00 committed by GitHub
commit 6e1edfb9ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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