[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape e556c7a6b6 057/133: Fix line highlight flicker
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/evil-escape e556c7a6b6 057/133: Fix line highlight flicker on escape |
|
Date: |
Wed, 3 Jan 2024 21:59:52 -0500 (EST) |
branch: elpa/evil-escape
commit e556c7a6b65f6d171c055457b6d64be8da09be76
Author: Miles Steele <miles@milessteele.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Fix line highlight flicker on escape
---
evil-escape.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/evil-escape.el b/evil-escape.el
index ed8a56cab0..763e4969f7 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -412,9 +412,13 @@ DELETE-FUNC when calling CALLBACK. "
(let* ((modified (buffer-modified-p))
(fkey (elt keys 0))
(fkeystr (char-to-string fkey))
- (skey (elt keys 1)))
+ (skey (elt keys 1))
+ (hl-line-mode-before hl-line-mode))
(if insert-func (funcall insert-func fkey))
+ ;; temporarily force line-mode locally to prevent flicker from read-event
+ (when (or global-hl-line-mode hl-line-mode) (hl-line-mode 1))
(let* ((evt (read-event nil nil evil-escape-delay)))
+ (unless hl-line-mode-before (hl-line-mode -1))
(cond
((null evt)
(unless insert-func
- [nongnu] elpa/evil-escape 6d46b81bbc 030/133: Fix regression for evil-iedit-state, (continued)
- [nongnu] elpa/evil-escape 6d46b81bbc 030/133: Fix regression for evil-iedit-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 3637f13210 055/133: Correctly handle iedit-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape da5498d25e 035/133: Correctly restore evil-lisp-state shadowed function by evil-escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape cf3e18673d 051/133: Undefine mapping on first key when evil-escape is disabled, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape cbfc43840f 063/133: Ensure that map is defined when undefining keys, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b8c9b4631d 049/133: Add support for helm-ag-edit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b205051996 056/133: More stable passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape afa9c9c321 067/133: Fixes #37 Capital r deletes a char inappropriately, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 67843e9dd4 041/133: Fix recursive `f` input during isearch in certain buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e78ffcdbeb 036/133: Explicitly disable any running transient map, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e556c7a6b6 057/133: Fix line highlight flicker on escape,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 05d9e5fc80 052/133: Don't break deft-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 457386c7bc 043/133: Generalize passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6c6379c19b 065/133: Update README for 3.0, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bc054dbe1e 059/133: Add documentation to generated wrapper functions, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1488a2c9c3 037/133: When replaying macro, pass shadow func, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f8fe5c98d2 083/133: Add `evil-escape-inhibit-functions`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b0d033794c 089/133: Fix typo in docstring of evil-escape-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in normal state if it makes sense, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bf41c9e797 068/133: Fix typo in docstring (thanks to person808), ELPA Syncer, 2024/01/03