mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 04:50:21 +00:00
Fix fish widget changing tty settings (#296)
This commit is contained in:
parent
790e24ea49
commit
1986dd4caf
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue