[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround 346d4d85fc 150/175: Fix dot repeat with coun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround 346d4d85fc 150/175: Fix dot repeat with counted motions |
Date: |
Mon, 9 Oct 2023 13:01:15 -0400 (EDT) |
branch: elpa/evil-surround
commit 346d4d85fcf1f9517e9c4991c1efe68b4130f93a
Author: Yiming Chen <dsdshcym@gmail.com>
Commit: ninrod <filipe.silva@gmail.com>
Fix dot repeat with counted motions
- rel: #133
---
evil-surround.el | 3 +++
test/evil-surround-test.el | 8 ++++++++
2 files changed, 11 insertions(+)
diff --git a/evil-surround.el b/evil-surround.el
index bd80d3035c..2fb79a8890 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)))
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index 73d4b69cf8..1da5d37d8b 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -166,6 +166,14 @@
"one two 'three'"
("W.") ;; repeat delete surround
"one two three"))
+ (ert-info ("repeat surrounding with count")
+ (evil-test-buffer
+ "[o]ne two three\none two three"
+ (turn-on-evil-surround-mode)
+ ("ys2wb")
+ "(one two) three\none two three"
+ ("j.")
+ "(one two) three\n(one two) three"))
(ert-info ("visual surrounding")
(evil-test-buffer
"<one two> three\nfour\n"
- [nongnu] elpa/evil-surround 3812140e11 086/175: Merge pull request #83 from wbolster/use-explicit-autoload-definitions, (continued)
- [nongnu] elpa/evil-surround 3812140e11 086/175: Merge pull request #83 from wbolster/use-explicit-autoload-definitions, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 00f70acfff 083/175: Merge pull request #81 from wbolster/read-keys-with-translation, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround f448455313 097/175: add credits to Tim Harper, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 853b9fdf11 110/175: Add tests for repeat, visual mode, visual line mode, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a92151def9 129/175: Revert "surround-function improvement for lisp modes (#134)", ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 2af81ab3ac 127/175: fix readme on how to add a new surround pair, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7780daa573 169/175: Support multiple-character delimiter deletion, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 897203ca5f 134/175: update readme: copyright years, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7236499c43 148/175: fix typos in the readme, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8449d19d05 158/175: Fix visual screen-line surrounding bug., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 346d4d85fc 150/175: Fix dot repeat with counted motions,
ELPA Syncer <=
- [nongnu] elpa/evil-surround d210e1fc2c 140/175: main el file: add dots and caps to evil-surround-tag-name-re, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8069f9c2f3 147/175: trying to update travis configuration, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround e46c455c7d 167/175: Silence byte-compiler warnings, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 1a4bc20f15 135/175: add csw, csW, css and csp shortcuts, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 1c34944d8c 149/175: remove emacs 24 and 25 from the build pipeline, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 9e445b7ab1 136/175: main el file: fix version to 1.0.3, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8fad8540c4 172/175: Revert "Revert "Enable lexical binding"", ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a0ac30158d 113/175: add @edkolev's custom logo, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 3bd73794ee 153/175: Fix yss behavior with visual-line-mode, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 33bb00787a 053/175: Merge pull request #54 from hlissner/fix-esc-surround, ELPA Syncer, 2023/10/09