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

View File

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