vim-patch:8.1.0092: prompt buffer test fails

Problem:    Prompt buffer test fails.
Solution:   Set 'nomodified' before closing the window. (Ozaki Kiichi,
            closes vim/vim#3051
71ef1ba5e9
This commit is contained in:
erw7 2019-05-25 13:15:01 +09:00
parent aec3d7915c
commit 3557757a3c
1 changed files with 5 additions and 4 deletions

View File

@ -15,6 +15,7 @@ describe('prompt buffer', function()
source([[
func TextEntered(text)
if a:text == "exit"
set nomodified
stopinsert
close
else
@ -59,7 +60,7 @@ describe('prompt buffer', function()
Command: "hello" |
Result: "hello" |
% ^ |
[Prompt] |
[Prompt] [+] |
other buffer |
~ |
~ |
@ -101,7 +102,7 @@ describe('prompt buffer', function()
~ |
~ |
~ |
[Prompt] |
[Prompt] [+] |
other buffer |
~ |
~ |
@ -114,7 +115,7 @@ describe('prompt buffer', function()
~ |
~ |
~ |
[Prompt] |
[Prompt] [+] |
other buffer |
~ |
~ |
@ -127,7 +128,7 @@ describe('prompt buffer', function()
~ |
~ |
~ |
[Prompt] |
[Prompt] [+] |
other buffer |
~ |
~ |