diff options
| author | Justin Burkett <justin@burkett.cc> | 2019-08-11 21:37:30 -0400 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2019-11-05 10:20:42 +0100 |
| commit | 92102f3b30d03d1d87b34ae2c01e4bc2013d5129 (patch) | |
| tree | 4448f7cbb439f2b7b8010df85481267e7f15007a /evil-macros.el | |
| parent | aa3ea1dcfc54fe25581841a8685679d482e99b3f (diff) | |
Remove force argument from evil-adjust-cursor
The conditions checked in the body of the function are sufficient to guarantee
that the cursor should move back so there is no need to check the variable
evil-move-cursor-back, which is what the force argument allows for.
Diffstat (limited to 'evil-macros.el')
| -rw-r--r-- | evil-macros.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-macros.el b/evil-macros.el index 66d550d..b820545 100644 --- a/evil-macros.el +++ b/evil-macros.el @@ -295,7 +295,7 @@ of the object; otherwise it is placed at the end of the object." (unless (bobp) (backward-char))) (when (or (evil-normal-state-p) (evil-motion-state-p)) - (evil-adjust-cursor t))))) + (evil-adjust-cursor))))) ((> count 0) (when (evil-eobp) (signal 'end-of-buffer nil)) @@ -310,7 +310,7 @@ of the object; otherwise it is placed at the end of the object." (unless (bobp) (backward-char))) (when (or (evil-normal-state-p) (evil-motion-state-p)) - (evil-adjust-cursor t))))) + (evil-adjust-cursor))))) (t count)))) |
