]> git.eshelyaron.com Git - emacs.git/commitdiff
Fit the re-builder window to the buffer
authorJuri Linkov <juri@linkov.net>
Mon, 5 Sep 2022 18:58:27 +0000 (20:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 5 Sep 2022 18:58:27 +0000 (20:58 +0200)
* lisp/emacs-lisp/re-builder.el (re-builder): Fit the height to
the buffer (bug#56772).

lisp/emacs-lisp/re-builder.el

index e6e8bb202da5d9b08f4930739b0605880ba5bd2e..897c35b5b19b92527a53a9165ae97df454360669 100644 (file)
@@ -369,7 +369,8 @@ provided in the Commentary section of this library."
             (get-buffer-create reb-buffer)
             `((display-buffer-in-direction)
               (direction . ,dir)
-              (dedicated . t))))))
+              (dedicated . t)
+              (window-height . fit-window-to-buffer))))))
     (font-lock-mode 1)
     (reb-initialize-buffer)))