From 3557757a3c410bb5c6a9066b342b4f42b75ec5ed Mon Sep 17 00:00:00 2001 From: erw7 Date: Sat, 25 May 2019 13:15:01 +0900 Subject: 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 https://github.com/vim/vim/commit/71ef1ba5e996f34d3e0acbe1d89c4c6bfa5e98ba --- test/functional/legacy/prompt_buffer_spec.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua index d5b315a0c7..513be807be 100644 --- a/test/functional/legacy/prompt_buffer_spec.lua +++ b/test/functional/legacy/prompt_buffer_spec.lua @@ -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 | ~ | ~ | -- cgit