[PATCH 1/2] [gdb/tui] Allow command window of 1 or 2 lines
Tom Tromey
tom@tromey.com
Mon Nov 13 17:36:48 GMT 2023
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> + /* Compute the minimum height of this window. */
Tom> + virtual int min_height () const override
Tom> + {
Tom> + int preferred_min = tui_win_info::min_height ();
Tom> + int max = max_height ();
Tom> + /* If there is enough space to accommodate the preferred minimum height,
Tom> + use it. Otherwise, use as much as possible. */
Tom> + return (preferred_min <= max
Tom> + ? preferred_min
Tom> + : max);
I read this and was wondering if this will make the command window
ignore the weight given to it in the layout.
Tom
More information about the Gdb-patches
mailing list