[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/avy 955c8dedd6 30/31: avy.el (avy--overlay): Avoid erro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/avy 955c8dedd6 30/31: avy.el (avy--overlay): Avoid error on empty string |
Date: |
Mon, 13 Feb 2023 21:57:28 -0500 (EST) |
branch: externals/avy
commit 955c8dedd68c74f3cf692c1249513f048518c4c9
Author: David J. Rosenbaum <djr7c4@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
avy.el (avy--overlay): Avoid error on empty string
Fixes #351
Fixes #352
---
avy.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/avy.el b/avy.el
index 80f9a412c4..4c94a309a7 100644
--- a/avy.el
+++ b/avy.el
@@ -1019,10 +1019,11 @@ COMPOSE-FN is a lambda that concatenates the old string
at BEG with STR."
(os-line-prefix (get-text-property 0 'line-prefix old-str))
(os-wrap-prefix (get-text-property 0 'wrap-prefix old-str))
other-ol)
- (when os-line-prefix
- (add-text-properties 0 1 `(line-prefix ,os-line-prefix) str))
- (when os-wrap-prefix
- (add-text-properties 0 1 `(wrap-prefix ,os-wrap-prefix) str))
+ (unless (= (length str) 0)
+ (when os-line-prefix
+ (add-text-properties 0 1 `(line-prefix ,os-line-prefix) str))
+ (when os-wrap-prefix
+ (add-text-properties 0 1 `(wrap-prefix ,os-wrap-prefix) str)))
(when (setq other-ol (cl-find-if
(lambda (o) (overlay-get o 'goto-address))
(overlays-at beg)))
- [elpa] externals/avy 8686845ed9 01/31: avy.el (avy-flyspell-correct-function): Add, (continued)
- [elpa] externals/avy 8686845ed9 01/31: avy.el (avy-flyspell-correct-function): Add, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 27d1af3fa6 08/31: avy.el (avy-goto-whitespace-end): New command, ELPA Syncer, 2023/02/13
- [elpa] externals/avy cf95ba9582 15/31: avy.el (avy-with): Fix typo in doc-string, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 954774d6e9 17/31: avy.el (avy-action-yank-line): Add and bind to "Y", ELPA Syncer, 2023/02/13
- [elpa] externals/avy 3bf83140fa 16/31: avy.el (avy-goto-line): Can cancel with ESC, ELPA Syncer, 2023/02/13
- [elpa] externals/avy aa35412375 18/31: avy.el (avy--line-cands): Don't set temporary-goal-column, ELPA Syncer, 2023/02/13
- [elpa] externals/avy f34ff764aa 22/31: avy.el (avy-escape-chars): Add defcustom, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 2dde8b71a0 23/31: avy.el (avy-process): Add autoload, ELPA Syncer, 2023/02/13
- [elpa] externals/avy e92cb37457 25/31: avy.el (avy-transpose-lines-in-region): Add, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 6b53033883 26/31: Add GNU ELPA badge to README.md, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 955c8dedd6 30/31: avy.el (avy--overlay): Avoid error on empty string,
ELPA Syncer <=
- [elpa] externals/avy 9b1f0bc427 31/31: Merge remote-tracking branch 'refs/remotes/upstream/avy/main' into elpa--merge/avy, ELPA Syncer, 2023/02/13
- [elpa] externals/avy aadca9308a 03/31: avy.el (avy-resume): Work better for avy-goto-timer, ELPA Syncer, 2023/02/13
- [elpa] externals/avy ba5f035be3 27/31: Fix two byte-compiler warnings, ELPA Syncer, 2023/02/13
- [elpa] externals/avy acf553cae2 20/31: avy.el (avy--overlay-pre): Fix conflict with visual-line-mode, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 36a48baa2c 21/31: avy.el (avy-goto-char-2): Allow backspace, ELPA Syncer, 2023/02/13
- [elpa] externals/avy fd7b02f556 28/31: Add `avy-action-oneshot` variable to redefine avy-action locally, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 6f9eefadc9 29/31: avy.el (avy-process): Assume avy-action-oneshot will be let-bound, ELPA Syncer, 2023/02/13