Mercurial > vim
comparison src/testdir/test_prompt_buffer.vim @ 14025:eb5ee7479d31 v8.1.0030
patch 8.1.0030: stoping Vim running in a terminal may not work
commit https://github.com/vim/vim/commit/3339d3dad93a44eac76c71cfa48c86a20d3dddcc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 3 17:10:40 2018 +0200
patch 8.1.0030: stoping Vim running in a terminal may not work
Problem: Stoping Vim running in a terminal may not work.
Solution: Instead of sending <Esc> send CTRL-O.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Jun 2018 17:15:05 +0200 |
parents | 945d343d3024 |
children | d9fc15c833d5 |
comparison
equal
deleted
inserted
replaced
14024:11e8dcf02bbe | 14025:eb5ee7479d31 |
---|---|
32 \ 'endfunc', | 32 \ 'endfunc', |
33 \ '', | 33 \ '', |
34 \ 'func TimerFunc(text)', | 34 \ 'func TimerFunc(text)', |
35 \ ' " Add the output above the current prompt.', | 35 \ ' " Add the output above the current prompt.', |
36 \ ' call append(line("$") - 1, "Result: \"" . a:text . "\"")', | 36 \ ' call append(line("$") - 1, "Result: \"" . a:text . "\"")', |
37 \ ' " Reset &modified to allow the buffer to be closed.', | |
38 \ ' set nomodified', | |
37 \ 'endfunc', | 39 \ 'endfunc', |
38 \ '', | 40 \ '', |
39 \ 'call setline(1, "other buffer")', | 41 \ 'call setline(1, "other buffer")', |
42 \ 'set nomodified', | |
40 \ 'new', | 43 \ 'new', |
41 \ 'set buftype=prompt', | 44 \ 'set buftype=prompt', |
42 \ 'call prompt_setcallback(bufnr(""), function("TextEntered"))', | 45 \ 'call prompt_setcallback(bufnr(""), function("TextEntered"))', |
43 \ 'startinsert', | 46 \ 'startinsert', |
44 \ ], 'Xpromptscript') | 47 \ ], 'Xpromptscript') |