mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0089: fuzzy argument completion doesn't work for shell commands
Problem: Fuzzy argument completion doesn't work for shell commands. Solution: Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan, closes #10769)
This commit is contained in:
committed by
Bram Moolenaar
parent
30e212dac1
commit
7db3a8e329
@@ -1305,8 +1305,10 @@ set_cmd_index(char_u *cmd, exarg_T *eap, expand_T *xp, int *complp)
|
||||
eap->cmdidx = excmd_get_cmdidx(cmd, len);
|
||||
|
||||
// User defined commands support alphanumeric characters.
|
||||
// Also when doing fuzzy expansion, support alphanumeric characters.
|
||||
if ((cmd[0] >= 'A' && cmd[0] <= 'Z') || (fuzzy && *p != NUL))
|
||||
// Also when doing fuzzy expansion for non-shell commands, support
|
||||
// alphanumeric characters.
|
||||
if ((cmd[0] >= 'A' && cmd[0] <= 'Z')
|
||||
|| (fuzzy && eap->cmdidx != CMD_bang && *p != NUL))
|
||||
while (ASCII_ISALNUM(*p) || *p == '*') // Allow * wild card
|
||||
++p;
|
||||
}
|
||||
|
Reference in New Issue
Block a user