Skip to content

Commit

Permalink
Visual line motions are screen-line motions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjensen committed Apr 25, 2024
1 parent fe44a56 commit a3e0b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Only reliably usable via `evil-visual-eol-anchored-p'.")

(evil-define-motion evil-next-visual-line (count)
"Move the cursor COUNT screen lines down."
:type exclusive
:type line
(let ((line-move-visual t))
(when (eq most-positive-fixnum temporary-goal-column)
(setq temporary-goal-column (current-column))) ; Fix #1876
Expand All @@ -145,7 +145,7 @@ Only reliably usable via `evil-visual-eol-anchored-p'.")

(evil-define-motion evil-previous-visual-line (count)
"Move the cursor COUNT screen lines up."
:type exclusive
:type line
(let ((line-move-visual t))
(when (eq most-positive-fixnum temporary-goal-column)
(setq temporary-goal-column (current-column))) ; Fix #1876
Expand Down

0 comments on commit a3e0b21

Please sign in to comment.