[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 7fb133e847 180/288: Fix zero width replacement such a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 7fb133e847 180/288: Fix zero width replacement such as '^'(#44) |
Date: |
Thu, 6 Jan 2022 03:58:50 -0500 (EST) |
branch: elpa/anzu
commit 7fb133e847f313075e15df823a30f951af97b777
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Fix zero width replacement such as '^'(#44)
---
anzu.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/anzu.el b/anzu.el
index fb585b171b..e0f2ba0fd6 100644
--- a/anzu.el
+++ b/anzu.el
@@ -636,7 +636,13 @@
(cl-loop with curbuf = (current-buffer)
with search-func = (if use-regexp 're-search-forward
'search-forward)
while (funcall search-func from end t)
- do (anzu--set-marker (match-beginning 0) curbuf))))
+ do
+ (progn
+ (anzu--set-marker (match-beginning 0) curbuf)
+ (when (= (match-beginning 0) (match-end 0))
+ (if (eobp)
+ (cl-return nil)
+ (forward-char 1)))))))
(cl-defun anzu--query-replace-common (use-regexp &key at-cursor thing
prefix-arg (query t))
(anzu--cons-mode-line 'replace-query)
- [nongnu] elpa/anzu b3b912013d 225/288: Add custom variable of replacement threshold, (continued)
- [nongnu] elpa/anzu b3b912013d 225/288: Add custom variable of replacement threshold, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 380f5fd232 198/288: Merge pull request #53 from kosh04/fix-literal-match, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 38d49e3664 276/288: Revert "Fix issue #93", ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 799f26ee0e 260/288: Merge pull request #86 from syohex/no-match-face, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5bd8f5511d 273/288: Fix backward replace issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu abb129c5f8 148/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu c4a440af86 175/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 05eda5f709 191/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu dcd8eac2e5 165/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 57bad64f1e 185/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7fb133e847 180/288: Fix zero width replacement such as '^'(#44),
ELPA Syncer <=
- [nongnu] elpa/anzu c3c9a0b721 209/288: Set anzu--status per buffer, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4ab2b65dcb 201/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 97976620ae 222/288: Merge pull request #64 from akicho8/fix-region-word-replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f29278e5bd 218/288: Silence byte-compiler, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 31f70860ef 220/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5684b4b601 199/288: Check replaced regexp is valid, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3e34fb3df5 279/288: update anzu--use-result-cache-p as in PR #93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 494f1d9d39 195/288: Support highlighting match groups, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 12612a2b4f 202/288: Update document of custom function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 27e3a89622 203/288: Correct misspellings, ELPA Syncer, 2022/01/06