Marius Gedminas wrote:

> On Sun, Jun 03, 2018 at 05:11:43PM +0200, Bram Moolenaar wrote:
> > Patch 8.1.0030
> > Problem:    Stoping Vim running in a terminal may not work.
> > Solution:   Instead of sending <Esc> send CTRL-O.
> 
> > *** ../vim-8.1.0029/src/testdir/screendump.vim      2018-06-03 
> > 14:42:17.848505102 +0200
> > --- src/testdir/screendump.vim      2018-06-03 17:05:18.094429502 +0200
> ...
> > --- 81,91 ----
> >   " Stop a Vim running in terminal buffer "buf".
> >   func StopVimInTerminal(buf)
> >     call assert_equal("running", term_getstatus(a:buf))
> > ! 
> > !   " CTRL-O : works both in Normal mode and Insert mode to start a command 
> > line.
> > !   " In Command-line it's inserted, the CTRL-U removes it again.
> > !   call term_sendkeys(a:buf, "\<C-O>\<C-U>:qa!\<cr>")
> 
> Shouldn't this be \<C-O>:\<C-U>qa!\<cr>?  In insert mode <C-O><C-U>:qa!
> will literally input :qa! into the buffer.

Yes, you are right.  Somehow tests passed anyway.

-- 
How To Keep A Healthy Level Of Insanity:
2. Page yourself over the intercom. Don't disguise your voice.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui