[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles bf1be3be24 018/225: Don't show overlay on whi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles bf1be3be24 018/225: Don't show overlay on whitespaces-only regions |
Date: |
Wed, 12 Jan 2022 08:58:39 -0500 (EST) |
branch: elpa/evil-goggles
commit bf1be3be2418e5546defedfd8e18f6c7c232f9c2
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Don't show overlay on whitespaces-only regions
---
evil-goggles.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index ae254e68a9..73b9ab0d4e 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -77,7 +77,9 @@
(<= (point-min) beg end)
(>= (point-max) end beg)
(not (evil-visual-state-p))
- (not (evil-insert-state-p))))
+ (not (evil-insert-state-p))
+ ;; don't show overlay when the region has nothing but whitespace
+ (not (string-match "^[ \t\n]+$" (buffer-substring-no-properties beg
end)))))
(defun evil-goggles--evil-delete-advice (orig-fun beg end &optional type
register yank-handler)
(evil-goggles--with-goggles beg end 'evil-delete
- [nongnu] elpa/evil-goggles 888f064624 130/225: Add docstrings, (continued)
- [nongnu] elpa/evil-goggles 888f064624 130/225: Add docstrings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 7f30cbd73c 139/225: Fix default values, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 838aacbe33 176/225: evil-goggles--show-p: check for a single char *and* single line, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5780bcf8cb 186/225: Show hint only when the command is called interactively #18, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 4bfc8df8b3 191/225: Remove deprecated macros, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bb974e38d2 193/225: Add hints for `J`, `gq` and `=`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 42051e2cb3 197/225: Keep configuration per command in a variable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 1c72501a6f 196/225: Reduce configuration options - drop `substitute`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2b922512fb 199/225: Refactor, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles dac6c45aa1 214/225: Add hint for `Y', when `evil-want-Y-yank-to-eol' is t, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bf1be3be24 018/225: Don't show overlay on whitespaces-only regions,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 36fb70d6a1 044/225: Rename option `evil-goggles-show-for` to `evil-goggles-duration`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c6935dc53d 099/225: Don't bundle evil-tests.el. Fix #15, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 88cb3ffa38 100/225: Fetch evil-tests.el from evil's repo. Comment out parts of it with sed. Refs #15, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2d2011180f 111/225: Mention experimental pulse option in README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles e9b0ed0484 137/225: Tweak defaults, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ca6b5f7bfe 138/225: Rename APIs pre/post to blocking/async, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles df26adb069 153/225: Use async hints for paste, undo/redo, set mark, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 692f276434 158/225: Indentation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9626b143e1 171/225: Always use `evaporate` overlay property, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 56691c6e65 132/225: Rename functions, ELPA Syncer, 2022/01/12