mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0298: Ex command range with repeated search does not work
Problem: Ex command range with repeated search does not work. (Bruce DeVisser) Solution: Skip over \/, \? and \&.
This commit is contained in:
@@ -4357,9 +4357,16 @@ skip_range(
|
||||
{
|
||||
unsigned delim;
|
||||
|
||||
while (vim_strchr((char_u *)" \t0123456789.$%'/?-+,;", *cmd) != NULL)
|
||||
while (vim_strchr((char_u *)" \t0123456789.$%'/?-+,;\\", *cmd) != NULL)
|
||||
{
|
||||
if (*cmd == '\'')
|
||||
if (*cmd == '\\')
|
||||
{
|
||||
if (cmd[1] == '?' || cmd[1] == '/' || cmd[1] == '&')
|
||||
++cmd;
|
||||
else
|
||||
break;
|
||||
}
|
||||
else if (*cmd == '\'')
|
||||
{
|
||||
if (*++cmd == NUL && ctx != NULL)
|
||||
*ctx = EXPAND_NOTHING;
|
||||
|
Reference in New Issue
Block a user