Patch 8.2.4636

8 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 27, 2022, 11:56:56 AM3/27/22
to vim...@googlegroups.com

Patch 8.2.4636 (after 8.2.4633)
Problem: Not using Visual range.
Solution: Put the command pointer back to the range.
Files: src/ex_docmd.c


*** ../vim-8.2.4635/src/ex_docmd.c 2022-03-27 13:36:47.110991835 +0100
--- src/ex_docmd.c 2022-03-27 16:55:55.136902044 +0100
***************
*** 3092,3106 ****
break;
}

! if (has_visual_range && eap->cmd > cmd_start)
{
! // Move the '<,'> range to after the modifiers and insert a colon.
! // Since the modifiers have been parsed put the colon on top of the
! // space: "'<,'>mod cmd" -> "mod:'<,'>cmd
! // Put eap->cmd after the colon.
! mch_memmove(cmd_start - 5, cmd_start, eap->cmd - cmd_start);
! eap->cmd -= 5;
! mch_memmove(eap->cmd - 1, ":'<,'>", 6);
}

return OK;
--- 3092,3112 ----
break;
}

! if (has_visual_range)
{
! if (eap->cmd > cmd_start)
! {
! // Move the '<,'> range to after the modifiers and insert a colon.
! // Since the modifiers have been parsed put the colon on top of the
! // space: "'<,'>mod cmd" -> "mod:'<,'>cmd
! // Put eap->cmd after the colon.
! 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;
*** ../vim-8.2.4635/src/version.c 2022-03-27 16:50:58.925557951 +0100
--- src/version.c 2022-03-27 16:54:49.017049053 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4636,
/**/

--
ARTHUR: What?
BLACK KNIGHT: None shall pass.
ARTHUR: I have no quarrel with you, good Sir knight, but I must cross
this bridge.
BLACK KNIGHT: Then you shall die.
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages