mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
fix(ui): command line issues with external messages (#21709)
* fix: don't truncate external messages * fix: avoid resizing command line with external messages
This commit is contained in:
@@ -5780,6 +5780,10 @@ static void frame_setheight(frame_T *curfrp, int height)
|
||||
|
||||
if (curfrp->fr_parent == NULL) {
|
||||
// topframe: can only change the command line height
|
||||
// Avoid doing so with external messages.
|
||||
if (ui_has(kUIMessages)) {
|
||||
return;
|
||||
}
|
||||
if (height > ROWS_AVAIL) {
|
||||
// If height is greater than the available space, try to create space for
|
||||
// the frame by reducing 'cmdheight' if possible, while making sure
|
||||
@@ -6115,13 +6119,13 @@ void win_setminwidth(void)
|
||||
/// Status line of dragwin is dragged "offset" lines down (negative is up).
|
||||
void win_drag_status_line(win_T *dragwin, int offset)
|
||||
{
|
||||
// If the user explicitly set 'cmdheight' to zero, then allow for dragging
|
||||
// the status line making it zero again.
|
||||
if (p_ch == 0) {
|
||||
p_ch_was_zero = true;
|
||||
frame_T *fr = dragwin->w_frame;
|
||||
|
||||
// Avoid changing command line height with external messages.
|
||||
if (fr->fr_next == NULL && ui_has(kUIMessages)) {
|
||||
return;
|
||||
}
|
||||
|
||||
frame_T *fr = dragwin->w_frame;
|
||||
frame_T *curfr = fr;
|
||||
if (fr != topframe) { // more than one window
|
||||
fr = fr->fr_parent;
|
||||
|
Reference in New Issue
Block a user