comparison src/ex_docmd.c @ 13829:044337cbf854 v8.0.1786

patch 8.0.1786: no test for 'termwinkey' commit https://github.com/vim/vim/commit/b2ac14c0b5e23f8ab97c5c784bcd83e13ba8ded3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 1 18:47:59 2018 +0200 patch 8.0.1786: no test for 'termwinkey' Problem: No test for 'termwinkey'. Solution: Add a test. Make feedkeys() handle terminal_loop() returning before characters are consumed.
author Christian Brabandt <cb@256bit.org>
date Tue, 01 May 2018 19:00:07 +0200
parents 378f9f8e6d8f
children 4b35f2835ce4
comparison
equal deleted inserted replaced
13828:4dece4ef17bd 13829:044337cbf854
10338 finish_op = FALSE; 10338 finish_op = FALSE;
10339 while ((!stuff_empty() || ((was_typed || !typebuf_typed()) 10339 while ((!stuff_empty() || ((was_typed || !typebuf_typed())
10340 && typebuf.tb_len > 0)) && !got_int) 10340 && typebuf.tb_len > 0)) && !got_int)
10341 { 10341 {
10342 update_topline_cursor(); 10342 update_topline_cursor();
10343 normal_cmd(&oa, TRUE); /* execute a Normal mode cmd */ 10343 #ifdef FEAT_TERMINAL
10344 if (term_use_loop()
10345 && oa.op_type == OP_NOP && oa.regname == NUL
10346 && !VIsual_active)
10347 {
10348 /* If terminal_loop() returns OK we got a key that is handled
10349 * in Normal model. With FAIL we first need to position the
10350 * cursor and the screen needs to be redrawn. */
10351 if (terminal_loop(TRUE) == OK)
10352 normal_cmd(&oa, TRUE);
10353 }
10354 else
10355 #endif
10356 /* execute a Normal mode cmd */
10357 normal_cmd(&oa, TRUE);
10344 } 10358 }
10345 } 10359 }
10346 10360
10347 #ifdef FEAT_FIND_ID 10361 #ifdef FEAT_FIND_ID
10348 static void 10362 static void