summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
authorYiming Chen <dsdshcym@gmail.com>2020-05-26 07:50:54 +0800
committerninrod <filipe.silva@gmail.com>2020-06-03 19:16:23 -0300
commit346d4d85fcf1f9517e9c4991c1efe68b4130f93a (patch)
treeb3d3008eb33341ad23921c4b85cf8f0404fa6b2b /evil-surround.el
parent1c34944d8c98da4a2385d24ee89eef9cdf569a12 (diff)
Fix dot repeat with counted motions1.1.1devel
- rel: #133
Diffstat (limited to 'evil-surround.el')
-rw-r--r--evil-surround.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/evil-surround.el b/evil-surround.el
index bd80d30..2fb79a8 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -377,6 +377,9 @@ Becomes this:
}"
(interactive (evil-surround-input-region-char))
+ (if evil-this-motion-count
+ (evil-repeat-record (int-to-string evil-this-motion-count)))
+
(when (evil-surround-valid-char-p char)
(let* ((overlay (make-overlay beg end nil nil t))
(pair (or (and (boundp 'pair) pair) (evil-surround-pair char)))