Mercurial > vim
comparison src/testdir/test_mksession.vim @ 10726:78927b31c73a v8.0.0253
patch 8.0.0253: error when loading session if winminheight is 2
commit https://github.com/vim/vim/commit/36ae89c550a4f0a380606c3fb4a054957ad698f0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 28 17:11:14 2017 +0100
patch 8.0.0253: error when loading session if winminheight is 2
Problem: When creating a session when winminheight is 2 or larger and
loading that session gives an error.
Solution: Also set winminheight before setting winheight to 1. (Rafael
Bodill, neovim #5717)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Jan 2017 17:15:04 +0100 |
parents | cb856404d060 |
children | 52c96cc9a794 |
comparison
equal
deleted
inserted
replaced
10725:d2aa3ad3d3ef | 10726:78927b31c73a |
---|---|
99 call delete('test_mks.out') | 99 call delete('test_mks.out') |
100 call delete(tmpfile) | 100 call delete(tmpfile) |
101 let &wrap = wrap_save | 101 let &wrap = wrap_save |
102 endfunc | 102 endfunc |
103 | 103 |
104 func Test_mksession_winheight() | |
105 new | |
106 set winheight=10 winminheight=2 | |
107 mksession! test_mks.out | |
108 source test_mks.out | |
109 | |
110 " call delete('test_mks.out') | |
111 endfunc | |
112 | |
104 " vim: shiftwidth=2 sts=2 expandtab | 113 " vim: shiftwidth=2 sts=2 expandtab |