From 1986dd4caf2b6d31983b5f6cf82848af0ebbdea1 Mon Sep 17 00:00:00 2001 From: densa-inc Date: Fri, 20 Mar 2020 12:43:31 +0100 Subject: [PATCH] Fix fish widget changing tty settings (#296) --- shell/navi.plugin.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/navi.plugin.fish b/shell/navi.plugin.fish index d0df560..66fc71d 100644 --- a/shell/navi.plugin.fish +++ b/shell/navi.plugin.fish @@ -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