summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-01-14 01:09:16 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-01-14 01:12:49 +0900
commit23244bb41087f4f833c33219bba7a7213710ab20 (patch)
tree5c1c4451416a0e6ca2c241e7dc085ff2cdb4a637 /shell
parentedb647667e5630c77515e99a66bccec9d7519c0e (diff)
[fish] Fix intermittent errors on CTRL-T
This seems like a bug of fish, but sometimes when you select an item fish complains: "insertion mode switches can not be used when not in insertion mode" This only happens when using tmux pane. Injecting a dummy command somehow fixes the issue.
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.fish1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 3d3c2a72..40a1fee6 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -20,6 +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)
commandline -f repaint
rm -f $TMPDIR/fzf.result