mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.0612: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment. Solution: Add space checks.
This commit is contained in:
@@ -451,12 +451,9 @@ ex_sort(exarg_T *eap)
|
||||
}
|
||||
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;
|
||||
// Use last search pattern if sort pattern is empty.
|
||||
if (s == p + 1)
|
||||
|
Reference in New Issue
Block a user