Exit from visual state breaks dot repeation

York Zhao gtdplatform at gmail.com
Thu Nov 10 17:19:19 CET 2011


> 1. "i"
> 2. Type something, e.g., type foo
> 3. Esc
> 4. Press . will repeat the insertion of "foo" which is good.
> 5. "v" to enter visual state, then "Esc" to exit.
> 6. Press "." and I expect "foo" to be inserted but nothing happened.

Here is my fix to this problem but I'm not sure whether it will break anything
or not, especially because Frank has just done some work related to repeating
and visual state stuff.

diff --git a/evil-core.el b/evil-core.el
index 8884139..844cc78 100644
--- a/evil-core.el
+++ b/evil-core.el
@@ -174,6 +174,7 @@ This is the state the buffer came up in."
   (&optional buffer message)
   "Change the state of BUFFER to its previous state."
   :keep-visual t
+  :repeat abort
   (interactive)
   (with-current-buffer (or buffer (current-buffer))
     (evil-change-state (or evil-previous-state evil-default-state 'normal)


York



More information about the implementations-list mailing list