aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2024-04-01 23:21:07 +0200
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2024-04-14 21:29:49 +0200
commite31bff8cb64d773bbfd9a8e326db8645eaee43fd (patch)
treea1fe3e2173e2a41de05d09ac85361b164619f9cc /evil-common.el
parent27c9dce3cf49bb3714820d4485bdade8c70434e0 (diff)
Visual eol anchoring, so g$ is sticky
Also fixes #1876
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el
index c305c25..2b228c2 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -1254,7 +1254,10 @@ Signals an error at buffer boundaries unless NOERROR is non-nil."
(car-safe temporary-goal-column)
temporary-goal-column)))
(line-move-finish col opoint (< count 0)))
- (or noerror (/= (point) opoint) (signal (car err) (cdr err)))))))
+ (or noerror (/= (point) opoint) (signal (car err) (cdr err))))
+ (args-out-of-range
+ (unless (eq most-positive-fixnum temporary-goal-column)
+ (signal (car err) (cdr err)))))))
(defun evil-forward-syntax (syntax &optional count)
"Move point to the end or beginning of a sequence of characters in SYNTAX.