The attached patch fixes the problem with highlighting not being removed
after "r" + CTRL-R is pressed in Visual mode.

-- 
Cheers,
Lech

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Index: src/normal.c
===================================================================
--- src/normal.c	(revision 1341)
+++ src/normal.c	(working copy)
@@ -6770,7 +6770,16 @@
 	    had_ctrl_v = NUL;
     }
     else
+    {
 	had_ctrl_v = NUL;
+	if (Ctrl_C == cap->nchar)
+	{
+#ifdef FEAT_VISUAL
+	    reset_VIsual();
+#endif
+	    return;
+	}
+    }
 
     /* Abort if the character is a special key. */
     if (IS_SPECIAL(cap->nchar))
Index: runtime/doc/todo.txt
===================================================================
--- runtime/doc/todo.txt	(revision 1341)
+++ runtime/doc/todo.txt	(working copy)
@@ -192,9 +192,6 @@
 Problem with compound words?  (Bert, 2008 May 6)
 No warning for when flags are defined after they are used in an affix.
 
-With Visual selection, "r" and then CTRL-C  Visual mode is stopped but the
-highlighting is not removed.
-
 Screen redrawing when continuously updating the buffer and resizing the
 terminal. (Yakov Lerner, 2006 Sept 7)
 

Raspunde prin e-mail lui