summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_prompt_buffer.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_prompt_buffer.vim')
-rw-r--r--src/testdir/test_prompt_buffer.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim
index 3a0469da63..f7363d9ad5 100644
--- a/src/testdir/test_prompt_buffer.vim
+++ b/src/testdir/test_prompt_buffer.vim
@@ -34,9 +34,12 @@ func Test_prompt_basic()
\ 'func TimerFunc(text)',
\ ' " Add the output above the current prompt.',
\ ' call append(line("$") - 1, "Result: \"" . a:text . "\"")',
+ \ ' " Reset &modified to allow the buffer to be closed.',
+ \ ' set nomodified',
\ 'endfunc',
\ '',
\ 'call setline(1, "other buffer")',
+ \ 'set nomodified',
\ 'new',
\ 'set buftype=prompt',
\ 'call prompt_setcallback(bufnr(""), function("TextEntered"))',