Skip to content

Commit 558f50e

Browse files
committed
evil-types.el: fix deprecation warning for Evil's internal variable
There's no point in this warning, because it is defined and processed inside evil-mode. The warning only matters for user-side usage. So disable it here. Fixes: evil-types.el:96:22: Error: ‘evil-want-visual-char-semi-exclusive’ is an obsolete variable (as of 1.15.0); Semi-exclusivity prevents selecting text + 1st char of next line, without having to introduce new niche functionality.
1 parent 5995f6f commit 558f50e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evil-types.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If the end position is at the beginning of a line, then:
9393
Handling for `evil-want-visual-char-semi-exclusive' is deprecated,
9494
and will be removed in a future version."
9595
:expand (lambda (beg end)
96-
(if (and evil-want-visual-char-semi-exclusive
96+
(if (and (with-no-warnings evil-want-visual-char-semi-exclusive)
9797
(evil-visual-state-p)
9898
(< beg end)
9999
(save-excursion

0 commit comments

Comments
 (0)