patch 8.2.1679: Vim9: ":*" is not recognized as a range
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes #6838)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 2c157ee..b46748f 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -187,8 +187,12 @@
* 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 @@
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;