[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 902270eea8 084/225: Show a vertical visual hi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 902270eea8 084/225: Show a vertical visual hint for vertical text objects. |
Date: |
Wed, 12 Jan 2022 08:58:54 -0500 (EST) |
branch: elpa/evil-goggles
commit 902270eea80594577d9af26298998406f79e59a0
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Show a vertical visual hint for vertical text objects.
With this change, the visual hint for actions such as `y C-v 3j` will
correctly show a vertical visual hint. Fix #1
---
evil-goggles.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 560a8e60aa..044b73f95a 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -54,6 +54,15 @@
:group 'evil-goggles)
(defun evil-goggles--show (beg end face)
+ "Show overlay in region from BEG to END with FACE.
+
+If variable `evil-this-type' is 'block, the overlay will be a block,
+otherwise - a region."
+ (if (eq evil-this-type 'block)
+ (evil-goggles--show-block beg end face)
+ (evil-goggles--show-region beg end face)))
+
+(defun evil-goggles--show-region (beg end face)
"Show overlay in region from BEG to END with FACE."
(let ((ov (evil-goggles--make-overlay beg end 'face face)))
(unwind-protect
@@ -101,7 +110,6 @@ overlay must not be displayed.")
(>= (point-max) end beg)
(not (evil-visual-state-p))
(not (evil-insert-state-p))
- (not (eq evil-this-type 'block))
;; don't show overlay when the region has nothing but whitespace
(not (null (string-match-p "[^ \t\n]" (buffer-substring-no-properties
beg end))))))
- [nongnu] elpa/evil-goggles 1014993453 028/225: Add custom variable evil-goggles-blacklist to allow disabling individual functions, (continued)
- [nongnu] elpa/evil-goggles 1014993453 028/225: Add custom variable evil-goggles-blacklist to allow disabling individual functions, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f29820fe98 029/225: Detect only `evil-inhibit-operator-value` into account, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9882706667 030/225: Preserve the return value of evil-paste-*, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 253613ce66 039/225: Fix check of evil-last-paste, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 788c73d505 041/225: Make lighter configurable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 97498ef1ba 050/225: Clarify package should be on Melpa, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bf6f836609 056/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 10512f5b3b 054/225: Check evil-mode is on with bound-and-true-p, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ae77a5c6f0 067/225: Replace the boilerplate in evil-goggles-faces.el with a macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0f6254f548 070/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 902270eea8 084/225: Show a vertical visual hint for vertical text objects.,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 879114abea 085/225: Don't show the overlay when evil-mc is displaying multiple fake cursors, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0c713e7462 086/225: Add experimental support for undo/redo, off by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fec8dfd7b5 088/225: Simplify undo/redo checks, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fd85719817 089/225: Improve doc strings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0585f4d657 097/225: Try to avoid Travis seg-faults by running emacs in batch mode, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 142e0a9f2b 105/225: Remove unused option, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ee7fafb858 107/225: Remove debugs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5404dcfaf8 106/225: Don't quote inherited faces so face-background works, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 13fd7e348c 110/225: Disable pulsing by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 49c1318098 113/225: Update README, ELPA Syncer, 2022/01/12