mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.4636: not using Visual range
Problem: Not using Visual range. Solution: Put the command pointer back to the range.
This commit is contained in:
@@ -3092,15 +3092,21 @@ parse_command_modifiers(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_visual_range && eap->cmd > cmd_start)
|
if (has_visual_range)
|
||||||
{
|
{
|
||||||
// Move the '<,'> range to after the modifiers and insert a colon.
|
if (eap->cmd > cmd_start)
|
||||||
// Since the modifiers have been parsed put the colon on top of the
|
{
|
||||||
// space: "'<,'>mod cmd" -> "mod:'<,'>cmd
|
// Move the '<,'> range to after the modifiers and insert a colon.
|
||||||
// Put eap->cmd after the colon.
|
// Since the modifiers have been parsed put the colon on top of the
|
||||||
mch_memmove(cmd_start - 5, cmd_start, eap->cmd - cmd_start);
|
// space: "'<,'>mod cmd" -> "mod:'<,'>cmd
|
||||||
eap->cmd -= 5;
|
// Put eap->cmd after the colon.
|
||||||
mch_memmove(eap->cmd - 1, ":'<,'>", 6);
|
mch_memmove(cmd_start - 5, cmd_start, eap->cmd - cmd_start);
|
||||||
|
eap->cmd -= 5;
|
||||||
|
mch_memmove(eap->cmd - 1, ":'<,'>", 6);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
// no modifiers, move the pointer back
|
||||||
|
eap->cmd -= 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4636,
|
||||||
/**/
|
/**/
|
||||||
4635,
|
4635,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user