diff options
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index aa934bab43..cf5194d16f 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2006,9 +2006,7 @@ static int copy_loclist(const qf_list_T *from_qfl, qf_list_T *to_qfl) } if (from_qfl->qf_ctx != NULL) { to_qfl->qf_ctx = xcalloc(1, sizeof(*to_qfl->qf_ctx)); - if (to_qfl->qf_ctx != NULL) { - tv_copy(from_qfl->qf_ctx, to_qfl->qf_ctx); - } + tv_copy(from_qfl->qf_ctx, to_qfl->qf_ctx); } else { to_qfl->qf_ctx = NULL; } @@ -3473,7 +3471,9 @@ static int qf_goto_cwindow(const qf_info_T *qi, bool resize, int sz, if (sz != win->w_width) { win_setwidth(sz); } - } else if (sz != win->w_height) { + } else if (sz != win->w_height + && (win->w_height + win->w_status_height + tabline_height() + < cmdline_row)) { win_setheight(sz); } } |