summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-25 15:54:16 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-25 15:54:16 +0200
commit333015a46e916f566763ec44ae8669c0378767d9 (patch)
treedc3532022d4401595b0aa5b214f40d138ad6fe08 /src/ex_getln.c
parent41f6918bf4545de6a80c96d8c80f5f509f9a647f (diff)
patch 8.2.0637: incsearch highlighting does not work for ":sort!"v8.2.0637
Problem: Incsearch highlighting does not work for ":sort!". Solution: Skip over the exclamation point. (closes #5983)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 18da926560..7e92ec8992 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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)