Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 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 | a6c74689fb97 |
children | 0ac9e720a56e |
comparison
equal
deleted
inserted
replaced
18318:23e0dfe41d7a | 18319:4cc8a1a134fc |
---|---|
295 copen 10 | 295 copen 10 |
296 call assert_equal(height, winheight(0)) | 296 call assert_equal(height, winheight(0)) |
297 quit | 297 quit |
298 endfunc | 298 endfunc |
299 | 299 |
300 func Test_copenHeight_tabline() | |
301 set tabline=foo showtabline=2 | |
302 copen | |
303 wincmd H | |
304 let height = winheight(0) | |
305 copen 10 | |
306 call assert_equal(height, winheight(0)) | |
307 quit | |
308 set tabline& showtabline& | |
309 endfunc | |
310 | |
311 | |
300 " Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile | 312 " Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile |
301 " commands. | 313 " commands. |
302 func XfileTests(cchar) | 314 func XfileTests(cchar) |
303 call s:setup_commands(a:cchar) | 315 call s:setup_commands(a:cchar) |
304 | 316 |