m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

[zsh-completion] Fix error with backslash-prefixed commands

Fix #1973
Fix #1974
Fix #1975
This commit is contained in:
Junegunn Choi
2020-04-13 00:30:43 +09:00
parent 5deaf58928
commit dea206b023
2 changed files with 14 additions and 1 deletions

View File

@@ -2133,6 +2133,18 @@ class TestZsh < TestBase
tmux.send_keys "FZF_TMUX=1 #{Shell.zsh}", :Enter
tmux.prepare
end
def test_complete_quoted_command
tmux.send_keys 'export FZFFOOBAR=BAZ', :Enter
['unset', '\unset', "'unset'"].each do |command|
tmux.prepare
tmux.send_keys "#{command} FZFFOOBR**", :Tab
tmux.until { |lines| lines.match_count == 1 }
tmux.send_keys :Enter
tmux.until { |lines| lines[-1].include?("#{command} FZFFOOBAR") }
tmux.send_keys 'C-c'
end
end
end
class TestFish < TestBase