Especially when using :ScratchPreview and keeping it open with just a few lines in the buffer I was annoyed by the wasted space.
The PR enables dynamic window resizing to the number of lines in the scratch buffer, capped at g:scratch_height (only if g:scratch_horizontal is disabled).
Especially when using
:ScratchPreview
and keeping it open with just a few lines in the buffer I was annoyed by the wasted space.The PR enables dynamic window resizing to the number of lines in the scratch buffer, capped at
g:scratch_height
(only ifg:scratch_horizontal
is disabled).