Skip to content

Commit

Permalink
Avoid loop in quoted list
Browse files Browse the repository at this point in the history
This commit circumvents the following byte compilation error:

    evil-commands.el:2644:2: Error: List contains a loop: (lower-right lower-left upper-left upper-right lower-right lower-left upper-left upper-right lower-right lower-left . #6)
  • Loading branch information
axelf4 committed Oct 6, 2024
1 parent ea552ef commit 2007ff5
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 @@ -1427,7 +1427,7 @@ the left edge."

(defun evil-expand-line-for-line-based-operators (beg end type)
"Expand to line when in visual mode possibly changing BEG, END and TYPE.
Avoids double expansion for line based commands like 'V' or 'D'."
Avoids double expansion for line-based commands like \"V\" or \"D\"."
(when (evil-visual-state-p)
(unless (memq type '(line block screen-line))
;; Subtract 1 from end to avoid expanding to the next line
Expand Down Expand Up @@ -2653,7 +2653,7 @@ Corner may be one of `upper-left', `upper-right', `lower-left' and
When called interactively, the selection is rotated clockwise."
:keep-visual t
(interactive
(let ((corners '#1=(upper-left upper-right lower-right lower-left . #1#)))
(let ((corners '(#1=upper-left upper-right lower-right lower-left #1#)))
(list (cadr (memq (evil-visual-block-corner) corners)))))
(let* ((beg (or beg (point)))
(end (or end (mark t) beg))
Expand Down

0 comments on commit 2007ff5

Please sign in to comment.