Skip to content

Commit

Permalink
Merge pull request #1720 from SequentialDesign/only-change-recent-fra…
Browse files Browse the repository at this point in the history
…me-list-when-switch-target-is-different

only change recent frame list when switch target is different
  • Loading branch information
cxxxr authored Dec 30, 2024
2 parents cf0e261 + 732ab31 commit c180db2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ext/frame-multiplexer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,12 @@ The prefix argument ID defaults to 1."
;; and asking for the frame name (or buffer of the frame, if it has no name)
(check-frame-multiplexer-usable)
(let* ((vf (gethash (implementation) *virtual-frame-map*))
(entry (aref (virtual-frame-id/frame-table vf) id)))
(if entry
(switch-current-frame vf (frame-table-entry-frame entry))
(editor-error "No frame with ID ~a" id))))
(entry (aref (virtual-frame-id/frame-table vf) id))
(same-frame-p (eq (current-frame) (frame-table-entry-frame entry))))
(unless same-frame-p
(if entry
(switch-current-frame vf (frame-table-entry-frame entry))
(editor-error "No frame with ID ~a" id)))))

(macrolet ((def (command-name n)
`(define-command (,command-name (:advice-classes frame-multiplexer-advice))
Expand Down

0 comments on commit c180db2

Please sign in to comment.