mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:8.2.0612: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
2c5ed4e330
Omit ends_excmd2(): the same as ends_excmd() in legacy Vim script.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -504,9 +504,8 @@ void ex_sort(exarg_T *eap)
|
||||
eap->nextcmd = check_nextcmd(p);
|
||||
break;
|
||||
} else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL) {
|
||||
s = skip_regexp(p + 1, *p, true);
|
||||
if (*s != *p) {
|
||||
emsg(_(e_invalpat));
|
||||
s = skip_regexp_err(p + 1, *p, true);
|
||||
if (s == NULL) {
|
||||
goto sortend;
|
||||
}
|
||||
*s = NUL;
|
||||
|
Reference in New Issue
Block a user