aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.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-commands.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-commands.el')
-rw-r--r--evil-commands.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/evil-commands.el b/evil-commands.el
index d860238..7d87d6b 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -83,8 +83,7 @@ of the line or the buffer; just return nil."
(evil-motion-loop (nil (or count 1))
(forward-char)
;; don't put the cursor on a newline
- (when (and evil-move-cursor-back
- (not evil-move-beyond-eol)
+ (when (and (not evil-move-beyond-eol)
(not (evil-visual-state-p))
(not (evil-operator-state-p))
(eolp) (not (eobp)) (not (bolp)))
@@ -1607,7 +1606,6 @@ of the block."
(when evil-this-motion
(goto-char end)
(when (and evil-cross-lines
- evil-move-cursor-back
(not evil-move-beyond-eol)
(not (evil-visual-state-p))
(not (evil-operator-state-p))