summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.fish
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-04-24 04:51:35 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-04-24 04:51:35 +0900
commit772fa42dcb4c2303969d937fe8d88829d2a9eb8e (patch)
tree0b4327d6a9e974861cafdd4fa6f6c4a635153ec1 /shell/key-bindings.fish
parent85ef3263fcfe578aecdac2aecd6c949fed921a7f (diff)
[fish] Fix intermittent errors on CTRL-T
Related: 23244bb
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r--shell/key-bindings.fish3
1 files changed, 1 insertions, 2 deletions
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