mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 19:43:06 +00:00
Merge pull request #297 from DenSA-Inc/fish-fix
Fix fish widget changing tty settings (#296)
This commit is contained in:
commit
6e1edfb9ee
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue