Skip to content

Commit

Permalink
Fix fish widget changing tty settings (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenSA-Inc committed Mar 20, 2020
1 parent 790e24e commit 1986dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/navi.plugin.fish
Expand Up @@ -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
Expand Down

0 comments on commit 1986dd4

Please sign in to comment.