Mercurial > vim
comparison src/quickfix.c @ 18319:4cc8a1a134fc v8.1.2154
patch 8.1.2154: quickfix window height wrong when there is a tabline
Commit: https://github.com/vim/vim/commit/1142a31b8c44c4e7dbf28a83ae52995113b37917
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 16 14:51:39 2019 +0200
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 #5058)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Oct 2019 15:00:04 +0200 |
parents | bb0e25a8b5d7 |
children | 34d5cd432cac |
comparison
equal
deleted
inserted
replaced
18318:23e0dfe41d7a | 18319:4cc8a1a134fc |
---|---|
4044 if (vertsplit) | 4044 if (vertsplit) |
4045 { | 4045 { |
4046 if (sz != win->w_width) | 4046 if (sz != win->w_width) |
4047 win_setwidth(sz); | 4047 win_setwidth(sz); |
4048 } | 4048 } |
4049 else if (sz != win->w_height | 4049 else if (sz != win->w_height && win->w_height |
4050 && win->w_height + win->w_status_height < cmdline_row) | 4050 + win->w_status_height + tabline_height() < cmdline_row) |
4051 win_setheight(sz); | 4051 win_setheight(sz); |
4052 } | 4052 } |
4053 | 4053 |
4054 return OK; | 4054 return OK; |
4055 } | 4055 } |