0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.1679: Vim9: ":*" is not recognized as a range

Problem:    Vim9: ":*" is not recognized as a range.
Solution:   Move recognizing "*" into skip_range(). (closes #6838)
This commit is contained in:
Bram Moolenaar
2020-09-14 16:37:34 +02:00
parent d1f76afaf9
commit 3bd8de40b4
8 changed files with 33 additions and 13 deletions

View File

@@ -3150,7 +3150,7 @@ def_function(exarg_T *eap, char_u *name_arg)
}
// Check for ":append", ":change", ":insert". Not for :def.
p = skip_range(p, NULL);
p = skip_range(p, FALSE, NULL);
if (eap->cmdidx != CMD_def
&& ((p[0] == 'a' && (!ASCII_ISALPHA(p[1]) || p[1] == 'p'))
|| (p[0] == 'c'