aboutsummaryrefslogtreecommitdiff
path: root/evil-tests.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2022-11-09 12:15:40 +0000
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-11-09 13:18:58 +0100
commita9a0e002053864df4cde0d49e7d277ab52853d5d (patch)
tree55dfcf816234cbd1827a73f202ea72c291d2da12 /evil-tests.el
parentd916244898a3bbc91a192707f71e977cf330a840 (diff)
Only do performant ex-delete if no args
Diffstat (limited to 'evil-tests.el')
-rw-r--r--evil-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/evil-tests.el b/evil-tests.el
index fb7d266..b5a626a 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -8487,6 +8487,11 @@ maybe we need one line more with some text\n")
"alpha bravo charlie\n[a]lpha BRAVO charlie\nalpha delta charlie"
(":g/\\cBravo/d" [return])
"alpha delta charlie"))
+ (ert-info ("global delete with arg")
+ (evil-test-buffer
+ "[n]o 1\nno 2\nno 3\nyes 4\nno 5\nno 6\nno 7\n"
+ (":g/yes/d2" [return])
+ "no 1\nno 2\nno 3\n[n]o 6\nno 7\n"))
(ert-info ("global substitute")
(evil-test-buffer
"[n]o 1\nno 2\nno 3\nyes 4\nno 5\nno 6\nno 7\n"