Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 16483:393dd420a753 v8.1.1245
patch 8.1.1245: ":copen 10" sets height in full-height window
commit https://github.com/vim/vim/commit/36d502225c3ec5e8b30771d58ee20171ce564b2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 2 20:17:40 2019 +0200
patch 8.1.1245: ":copen 10" sets height in full-height window
Problem: ":copen 10" sets height in full-height window. (Daniel Hahler)
Solution: Don't set the height if the quickfix window is full height.
(closes #4325)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 May 2019 20:30:06 +0200 |
parents | 1f18984498e1 |
children | 28e3ba82d8c8 |
comparison
equal
deleted
inserted
replaced
16482:7d0ded7f3e97 | 16483:393dd420a753 |
---|---|
277 func Test_cwindow() | 277 func Test_cwindow() |
278 call XwindowTests('c') | 278 call XwindowTests('c') |
279 call XwindowTests('l') | 279 call XwindowTests('l') |
280 endfunc | 280 endfunc |
281 | 281 |
282 func Test_copenHeight() | |
283 copen | |
284 wincmd H | |
285 let height = winheight(0) | |
286 copen 10 | |
287 call assert_equal(height, winheight(0)) | |
288 quit | |
289 endfunc | |
290 | |
282 " Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile | 291 " Tests for the :cfile, :lfile, :caddfile, :laddfile, :cgetfile and :lgetfile |
283 " commands. | 292 " commands. |
284 func XfileTests(cchar) | 293 func XfileTests(cchar) |
285 call s:setup_commands(a:cchar) | 294 call s:setup_commands(a:cchar) |
286 | 295 |