Hi Bram,

On Mon, Feb 6, 2017 at 1:23 PM, Bram Moolenaar <[email protected]> wrote:
>
> Yegappan wrote:
>
>> I am attaching a patch to add tests for the getcmdtype(), getcmdpos()
>> and getcmdline() functions.
>
> Thanks!
>
> There appears to be a one second delay in this test somewhere.
> Can't quite see where it happens.
>

There is no hard-coded one second delay in the test. It looks like cancelling
the input() prompt with <Esc> causes the delay. I have changed <Esc> to
CTRL-C to cancel the prompt. The patch is attached.

- Yegappan

-- 
-- 
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.
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 0a5c910..b2beb68 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -353,7 +353,7 @@ func Test_getcmdtype()
   call feedkeys("?MyCmd a\<C-R>=Check_cmdline('?')\<CR>\<Esc>", "xt")
 
   call feedkeys(":call input('Answer?')\<CR>", "t")
-  call feedkeys("MyCmd a\<C-R>=Check_cmdline('@')\<CR>\<Esc>", "xt")
+  call feedkeys("MyCmd a\<C-R>=Check_cmdline('@')\<CR>\<C-C>", "xt")
 
   call feedkeys(":insert\<CR>MyCmd a\<C-R>=Check_cmdline('-')\<CR>\<Esc>", 
"xt")
 

Raspunde prin e-mail lui