-*change.txt* For Vim version 9.0. Last change: 2023 Mar 07
+*change.txt* For Vim version 9.0. Last change: 2023 Sep 19
VIM REFERENCE MANUAL by Bram Moolenaar
*v_r*
{Visual}r{char} Replace all selected characters by {char}.
+ CTRL-C will be inserted literally.
*v_C*
{Visual}["x]C Delete the highlighted lines [into register x] and
-*visual.txt* For Vim version 9.0. Last change: 2022 Dec 04
+*visual.txt* For Vim version 9.0. Last change: 2023 Sep 19
VIM REFERENCE MANUAL by Bram Moolenaar
CTRL-C In Visual mode: Stop Visual mode. When insert mode is
pending (the mode message shows
"-- (insert) VISUAL --"), it is also stopped.
+ On MS-Windows, you may need to press CTRL-Break
+ |dos-CTRL-Break|.
==============================================================================
3. Changing the Visual area *visual-change*
if (VIsual_active)
{
if (got_int)
- reset_VIsual();
+ got_int = FALSE;
if (had_ctrl_v)
{
// Use a special (negative) number to make a difference between a
call StopVimInTerminal(buf)
endfunc
+func Test_Visual_r_CTRL_C()
+ new
+ " visual r_cmd
+ call setline(1, [' '])
+ call feedkeys("\<c-v>$r\<c-c>", 'tx')
+ call assert_equal(['\ 3\ 3\ 3'], getline(1, 1))
+
+ " visual gr_cmd
+ call setline(1, [' '])
+ call feedkeys("\<c-v>$gr\<c-c>", 'tx')
+ call assert_equal(['\ 3\ 3\ 3'], getline(1, 1))
+ bw!
+endfu
+
" vim: shiftwidth=2 sts=2 expandtab
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1915,
/**/
1914,
/**/