mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
vim-patch:8.1.2154: quickfix window height wrong when there is a tabline
Problem: Quickfix window height wrong when there is a tabline. (Daniel
Hahler)
Solution: Take the tabline height into account. (closes vim/vim#5058)
1142a31b8c
This commit is contained in:
parent
7c26be61bb
commit
0f7a645f54
@ -3165,7 +3165,8 @@ static int qf_goto_cwindow(const qf_info_T *qi, bool resize, int sz,
|
|||||||
win_setwidth(sz);
|
win_setwidth(sz);
|
||||||
}
|
}
|
||||||
} else if (sz != win->w_height
|
} else if (sz != win->w_height
|
||||||
&& win->w_height + win->w_status_height < cmdline_row) {
|
&& (win->w_height + win->w_status_height + tabline_height()
|
||||||
|
< cmdline_row)) {
|
||||||
win_setheight(sz);
|
win_setheight(sz);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -282,6 +282,18 @@ func Test_copenHeight()
|
|||||||
quit
|
quit
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_copenHeight_tabline()
|
||||||
|
set tabline=foo showtabline=2
|
||||||
|
copen
|
||||||
|
wincmd H
|
||||||
|
let height = winheight(0)
|
||||||
|
copen 10
|
||||||
|
call assert_equal(height, winheight(0))
|
||||||
|
quit
|
||||||
|
set tabline& showtabline&
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
" Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile
|
" Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile
|
||||||
" commands.
|
" commands.
|
||||||
func XfileTests(cchar)
|
func XfileTests(cchar)
|
||||||
|
Loading…
Reference in New Issue
Block a user