aboutsummaryrefslogtreecommitdiff
path: root/evil-repeat.el
diff options
context:
space:
mode:
authorFrank Fischer <frank-fischer@shadow-soft.de>2014-05-05 14:01:27 +0200
committerFrank Fischer <frank-fischer@shadow-soft.de>2014-05-05 14:01:27 +0200
commit845dec0d6231899f646859064735323d0bc97813 (patch)
tree239d6324a57092d3acb4d0afff79eecb4d56f195 /evil-repeat.el
parent5924c39fe059522f6e36420385d51d5d608f8e4d (diff)
automatically increment numeric register in dot command (fix #392)
Diffstat (limited to 'evil-repeat.el')
-rw-r--r--evil-repeat.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/evil-repeat.el b/evil-repeat.el
index 0af5b57..f4edc1c 100644
--- a/evil-repeat.el
+++ b/evil-repeat.el
@@ -503,6 +503,12 @@ where point should be placed after all changes."
(execute-kbd-macro rep)
(activate-input-method input-method))))
((consp rep)
+ (when (and (= 3 (length rep))
+ (eq (nth 0 rep) 'set)
+ (eq (nth 1 rep) 'evil-this-register)
+ (>= (nth 2 rep) ?0)
+ (< (nth 2 rep) ?9))
+ (setcar (nthcdr 2 rep) (1+ (nth 2 rep))))
(apply (car rep) (cdr rep)))
(t
(error "Unexpected repeat-info: %S" rep))))))