aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorJustin Burkett <justin@burkett.cc>2019-08-08 22:11:03 -0400
committerEivind Fonn <evfonn@gmail.com>2019-11-05 10:20:42 +0100
commitaa3ea1dcfc54fe25581841a8685679d482e99b3f (patch)
tree19c82fd33fa456b9b2b54d8487b337f204fe762d /evil-common.el
parent45606ec27cbeb7d074ab92658b496950c40dc76b (diff)
Unwed evil-move-beyond-eol and evil-move-cursor-back
The docstring of evil-cursor-back only mentions that it applies to moving the cursor back when exiting insert state, but in many cases it was tied to also moving the cursor when reaching the end of the line. We have evil-move-beyond-eol to control that behavior, and there doesn't seem to be a good reason that the two must be tied together. Fixes #1178
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/evil-common.el b/evil-common.el
index 2ef3b23..26b6b39 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -1127,13 +1127,13 @@ This function should be used in forward motions. If `point' is close
to eob so that no further forward motion is possible the error
'end-of-buffer is raised. This is the case if `point' is at
`point-max' or if is one position before `point-max',
-`evil-move-cursor-back' is non-nil and `point' is not at the end
+`evil-move-beyond-eol' is nil and `point' is not at the end
of a line. The latter is necessary because `point' cannot be
-moved to `point-max' if `evil-move-cursor-back' is non-nil and
+moved to `point-max' if `evil-move-beyond-eol' is nil and
the last line in the buffer is not empty."
(when (or (eobp)
(and (not (eolp))
- evil-move-cursor-back
+ (not evil-move-beyond-eol)
(save-excursion (forward-char) (eobp))))
(signal 'end-of-buffer nil)))