mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-15 12:51:01 +02:00
[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.
This commit is contained in:
parent
edb647667e
commit
23244bb410
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue