aboutsummaryrefslogtreecommitdiff
path: root/evil-tests.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2024-01-23 16:57:31 +0100
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2024-01-23 17:01:14 +0100
commit9e27bb9e5a66cacbf9f1f4f20ca9b30fc2ae297b (patch)
treee07601c0894b4e7e3f7ebb3ca33ff842d43a114f /evil-tests.el
parent59774e369aefba721ff8b72bfb88bdf12f8ecd74 (diff)
No performant delete if range supplied
Fixes #1858
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 09569f1..8dfaf1d 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -8668,6 +8668,11 @@ maybe we need one line more with some text\n")
"[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 delete with range")
+ (evil-test-buffer
+ "alpha\nbravo\ncharlie\ndelta\ncharlie\necho\ngolf\ncharlie\nhotel"
+ (":g/charlie/-1d")
+ "alpha\ncharlie\ncharlie\necho\ncharlie\nhotel"))
(ert-info ("global substitute")
(evil-test-buffer
"[n]o 1\nno 2\nno 3\nyes 4\nno 5\nno 6\nno 7\n"