From 772fa42dcb4c2303969d937fe8d88829d2a9eb8e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 24 Apr 2016 04:51:35 +0900 Subject: [fish] Fix intermittent errors on CTRL-T Related: 23244bb --- shell/key-bindings.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 0a68b623..e29fdca4 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -20,8 +20,7 @@ function fzf_key_bindings -o -type d -print \ -o -type l -print 2> /dev/null | sed 1d | cut -b3-" eval "$FZF_CTRL_T_COMMAND | "(__fzfcmd)" -m > $TMPDIR/fzf.result" - and sleep 0 - and commandline -i (cat $TMPDIR/fzf.result | __fzf_escape) + and for i in (seq 20); commandline -i (cat $TMPDIR/fzf.result | __fzf_escape) 2> /dev/null; and break; sleep 0.1; end commandline -f repaint rm -f $TMPDIR/fzf.result end -- cgit v1.2.3