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" function navi-widget -d "Show cheat sheets"
begin begin
set ttysettings (stty -g)
stty sane stty sane
__call_navi | perl -pe 'chomp if eof' | read -lz result __call_navi | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result and commandline -- $result
stty $ttysettings
end end
commandline -f repaint commandline -f repaint
end end