Function: evil-repeat-different-buffer-p

evil-repeat-different-buffer-p is a byte-compiled function defined in evil-repeat.el.

Signature

(evil-repeat-different-buffer-p &optional STRICT)

Documentation

Whether the buffer has changed in a repeat.

If STRICT is non-nil, returns t if the previous buffer is unknown; otherwise returns t only if the previous buffer is known and different from the current buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-repeat.el
(defun evil-repeat-different-buffer-p (&optional strict)
  "Whether the buffer has changed in a repeat.
If STRICT is non-nil, returns t if the previous buffer
is unknown; otherwise returns t only if the previous
buffer is known and different from the current buffer."
  (and (or (buffer-live-p evil-repeat-buffer) strict)
       (not (minibufferp))
       (not (eq (current-buffer) evil-repeat-buffer))))