diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-14 16:37:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-14 16:37:34 +0200 |
commit | 3bd8de40b484d3617a19092d3cc036f8b4f3d51c (patch) | |
tree | b0ec9e16a8cfc27719141e162dce6fd7510266f5 /src/ex_getln.c | |
parent | d1f76afaf963be706697279ab0570ffcb8a1f2fc (diff) |
patch 8.2.1679: Vim9: ":*" is not recognized as a rangev8.2.1679
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes #6838)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 2c157ee52f..b46748f7f7 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -187,8 +187,12 @@ set_search_match(pos_T *t) * May change the last search pattern. */ static int -do_incsearch_highlighting(int firstc, int *search_delim, incsearch_state_T *is_state, - int *skiplen, int *patlen) +do_incsearch_highlighting( + int firstc, + int *search_delim, + incsearch_state_T *is_state, + int *skiplen, + int *patlen) { char_u *cmd; cmdmod_T save_cmdmod = cmdmod; @@ -230,7 +234,7 @@ do_incsearch_highlighting(int firstc, int *search_delim, incsearch_state_T *is_s parse_command_modifiers(&ea, &dummy, TRUE); cmdmod = save_cmdmod; - cmd = skip_range(ea.cmd, NULL); + cmd = skip_range(ea.cmd, TRUE, NULL); if (vim_strchr((char_u *)"sgvl", *cmd) == NULL) goto theend; |