[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil a9a0e00205: Only do performant ex-delete if no args
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil a9a0e00205: Only do performant ex-delete if no args |
Date: |
Wed, 9 Nov 2022 07:58:40 -0500 (EST) |
branch: elpa/evil
commit a9a0e002053864df4cde0d49e7d277ab52853d5d
Author: Tom Dalziel <tom_dl@hotmail.com>
Commit: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>
Only do performant ex-delete if no args
---
evil-commands.el | 2 +-
evil-tests.el | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/evil-commands.el b/evil-commands.el
index 57dc58bf19..bc03e7d661 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -4183,7 +4183,7 @@ Use `evil-flush-lines' if INVERT is nil, or
`evil-keep-lines' if not."
(when (and pattern command)
(when evil-ex-search-vim-style-regexp
(setq pattern (evil-transform-vim-style-regexp pattern)))
- (if ex-delete
+ (if (and ex-delete (not (nth 3 command-form)))
(evil--ex-performant-global-delete beg end pattern invert)
(setq isearch-string pattern)
(isearch-update-ring pattern t)
diff --git a/evil-tests.el b/evil-tests.el
index fb7d26644e..b5a626aae6 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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/evil a9a0e00205: Only do performant ex-delete if no args,
ELPA Syncer <=