Mercurial > vim
comparison src/testdir/screendump.vim @ 14031:d1eac0853a20 v8.1.0033
patch 8.1.0033: keys to stop Vim in terminal are wrong
commit https://github.com/vim/vim/commit/acb9effecc9f54b93398a44cc0ec40e77978e094
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 4 19:11:11 2018 +0200
patch 8.1.0033: keys to stop Vim in terminal are wrong
Problem: Keys to stop Vim in terminal are wrong. (Marius Gedminas)
Solution: Move ":" to before CTRL-U.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 04 Jun 2018 19:15:05 +0200 |
parents | eb5ee7479d31 |
children | 156a7c5328a7 |
comparison
equal
deleted
inserted
replaced
14030:2d7202f19fa5 | 14031:d1eac0853a20 |
---|---|
82 func StopVimInTerminal(buf) | 82 func StopVimInTerminal(buf) |
83 call assert_equal("running", term_getstatus(a:buf)) | 83 call assert_equal("running", term_getstatus(a:buf)) |
84 | 84 |
85 " CTRL-O : works both in Normal mode and Insert mode to start a command line. | 85 " CTRL-O : works both in Normal mode and Insert mode to start a command line. |
86 " In Command-line it's inserted, the CTRL-U removes it again. | 86 " In Command-line it's inserted, the CTRL-U removes it again. |
87 call term_sendkeys(a:buf, "\<C-O>\<C-U>:qa!\<cr>") | 87 call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>") |
88 | 88 |
89 call WaitForAssert({-> assert_equal("finished", term_getstatus(a:buf))}) | 89 call WaitForAssert({-> assert_equal("finished", term_getstatus(a:buf))}) |
90 only! | 90 only! |
91 endfunc | 91 endfunc |
92 | 92 |