Skip to content
Myr

[zsh-completion] Temporarily set nonomatch (#230)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

No error on ~INVALID_USERNAME**<TAB>

authored by Junegunn Choi · committed by Junegunn Choi · parent 26a141c · Browse files · 2 files+19 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+19 added−4 removed

  • tests:+12 added−2 removed
  • other:+7 added−2 removed

2 files+19 added−4 removed

modified:shell/completion.zsh+7 added-2 removed
modified:test/test_go.rb+12 added-2 removed
572 unmodified lines
573end574575module CompletionTest576 def test_file_completion577 tmux.send_keys 'mkdir -p /tmp/fzf-test; touch /tmp/fzf-test/{1..100}; touch ~/fzf-home', :Enter577 tmux.send_keys 'mkdir -p /tmp/fzf-test; touch /tmp/fzf-test/{1..100}; touch ~/fzf-home no~such~user', :Enter578 tmux.prepare579 tmux.send_keys 'cat /tmp/fzf-test/10**', :Tab, pane: 0580 tmux.until(1) { |lines| lines.item_count > 0 }581 tmux.send_keys :BTab, :BTab, :Enter
11 unmodified lines
593 tmux.until(1) { |lines| lines[-3].end_with? 'fzf-home' }594 tmux.send_keys :Enter595 tmux.until do |lines|596 tmux.send_keys 'C-L'597 lines[-1].include?('fzf-home')597 lines[-1].end_with?('fzf-home')598 end599600 # ~INVALID_USERNAME**<TAB>601 tmux.send_keys 'C-u'602 tmux.send_keys "cat ~such**", :Tab, pane: 0603 tmux.until(1) { |lines| lines[-3].end_with? 'no~such~user' }604 tmux.send_keys :Enter605 tmux.until do |lines|606 tmux.send_keys 'C-L'607 lines[-1].end_with?('no~such~user')608 end609 end610611 def test_dir_completion612 tmux.send_keys 'mkdir -p /tmp/fzf-test/d{1..100}; touch /tmp/fzf-test/d55/xxx', :Enter
89 unmodified lines