Skip to content

Commit

Permalink
Compatibility with vertico multiform toggle #29
Browse files Browse the repository at this point in the history
  • Loading branch information
tumashu committed Feb 17, 2023
1 parent 790f74b commit f57b170
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vertico-posframe.el
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@ is called, window-point will be set to WINDOW-POINT."
(funcall (buffer-local-value 'vertico-posframe-fallback-mode (current-buffer)) -1)
(advice-remove #'vertico--display-candidates #'vertico-posframe--display)
(advice-remove #'vertico--setup #'vertico-posframe--setup)
(advice-remove #'vertico--resize-window #'ignore)))))
(advice-remove #'vertico--resize-window #'ignore)
;; When vertico-posframe-mode is disabled, hide posframe and let
;; the contents of minibuffer show again, this approach let
;; vertico-posframe works with vertico multiform toggle.
(set-window-vscroll (active-minibuffer-window) 0)
(posframe-hide vertico-posframe--buffer)))))

(provide 'vertico-posframe)
;;; vertico-posframe.el ends here

0 comments on commit f57b170

Please sign in to comment.