mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.0637: incsearch highlighting does not work for ":sort!"
Problem: Incsearch highlighting does not work for ":sort!". Solution: Skip over the exclamation point. (closes #5983)
This commit is contained in:
@@ -249,7 +249,9 @@ do_incsearch_highlighting(int firstc, int *search_delim, incsearch_state_T *is_s
|
||||
}
|
||||
else if (STRNCMP(cmd, "sort", MAX(p - cmd, 3)) == 0)
|
||||
{
|
||||
// skip over flags
|
||||
// skip over ! and flags
|
||||
if (*p == '!')
|
||||
p = skipwhite(p + 1);
|
||||
while (ASCII_ISALPHA(*(p = skipwhite(p))))
|
||||
++p;
|
||||
if (*p == NUL)
|
||||
|
Reference in New Issue
Block a user