Mercurial > vim
comparison src/testdir/test_exit.vim @ 27857:8c8fabf093bb v8.2.4454
patch 8.2.4454: resetting cmdwin_type only for one situation
Commit: https://github.com/vim/vim/commit/6a8b13614e5bcb233d20403ae9f008ccba152be3
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Feb 23 12:23:08 2022 +0000
patch 8.2.4454: resetting cmdwin_type only for one situation
Problem: Resetting cmdwin_type only for one situation.
Solution: Reset cmdwin_type before closing windows. (closes https://github.com/vim/vim/issues/9822)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Feb 2022 13:30:03 +0100 |
parents | cd4187269bdf |
children | 5dd393285464 |
comparison
equal
deleted
inserted
replaced
27856:cd7dd0a9c09f | 27857:8c8fabf093bb |
---|---|
117 CheckNotAsan | 117 CheckNotAsan |
118 | 118 |
119 call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b') | 119 call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b') |
120 | 120 |
121 if RunVim([], [], '<Xscript') | 121 if RunVim([], [], '<Xscript') |
122 call assert_equal(1, v:shell_error) | |
122 call assert_equal(['l = 1'], readfile('Xtestout')) | 123 call assert_equal(['l = 1'], readfile('Xtestout')) |
123 endif | 124 endif |
124 call delete('Xscript') | 125 call delete('Xscript') |
125 call delete('Xtestout') | 126 call delete('Xtestout') |
126 endfun | 127 endfun |