branch: externals/marginalia commit c93b1b3ec8bd49f48811633028fba4d3d3b2dbbf Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
marginalia--full-candidate: Do not switch entire window Switching only the buffer seems to be sufficient. --- marginalia.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marginalia.el b/marginalia.el index 2d595bb..6e07c26 100644 --- a/marginalia.el +++ b/marginalia.el @@ -607,7 +607,7 @@ component of a full file path. This function returns what would be the minibuffer contents after using `minibuffer-force-complete' on the candidate CAND." (if-let (win (active-minibuffer-window)) - (with-selected-window win + (with-current-buffer (window-buffer win) (let* ((contents (minibuffer-contents)) (pt (- (point) (minibuffer-prompt-end))) (bounds (completion-boundaries