comparison src/evalfunc.c @ 31503:b9a4699d6a35 v9.0.1084

patch 9.0.1084: code handling low level MS-Windows events cannot be tested Commit: https://github.com/vim/vim/commit/20b795e0eba6c933868c8f7cf62fb85d4f007688 Author: Christopher Plewright <chris@createng.com> Date: Tue Dec 20 20:01:58 2022 +0000 patch 9.0.1084: code handling low level MS-Windows events cannot be tested Problem: Code handling low level MS-Windows events cannot be tested. Solution: Add test_mswin_event() and tests using it. (Christopher Plewright, closes #11622)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Dec 2022 21:15:05 +0100
parents 307f68a41b03
children 67d9fbe516a3
comparison
equal deleted inserted replaced
31502:9940db8ec7d7 31503:b9a4699d6a35
2692 ret_number, f_test_getvalue}, 2692 ret_number, f_test_getvalue},
2693 {"test_gui_event", 2, 2, FEARG_1, arg2_string_dict, 2693 {"test_gui_event", 2, 2, FEARG_1, arg2_string_dict,
2694 ret_bool, f_test_gui_event}, 2694 ret_bool, f_test_gui_event},
2695 {"test_ignore_error", 1, 1, FEARG_1, arg1_string, 2695 {"test_ignore_error", 1, 1, FEARG_1, arg1_string,
2696 ret_void, f_test_ignore_error}, 2696 ret_void, f_test_ignore_error},
2697 {"test_mswin_event", 2, 2, FEARG_1, arg2_string_dict,
2698 ret_number, f_test_mswin_event},
2697 {"test_null_blob", 0, 0, 0, NULL, 2699 {"test_null_blob", 0, 0, 0, NULL,
2698 ret_blob, f_test_null_blob}, 2700 ret_blob, f_test_null_blob},
2699 {"test_null_channel", 0, 0, 0, NULL, 2701 {"test_null_channel", 0, 0, 0, NULL,
2700 ret_channel, JOB_FUNC(f_test_null_channel)}, 2702 ret_channel, JOB_FUNC(f_test_null_channel)},
2701 {"test_null_dict", 0, 0, 0, NULL, 2703 {"test_null_dict", 0, 0, 0, NULL,
4385 } 4387 }
4386 } 4388 }
4387 4389
4388 if (*keys != NUL || execute) 4390 if (*keys != NUL || execute)
4389 { 4391 {
4390 if (lowlevel) 4392 if (lowlevel
4393 #ifdef FEAT_VTP
4394 && (!is_term_win32()
4395 || (keys[0] == 3 && ctrl_c_interrupts && typed))
4396 #endif
4397 )
4391 { 4398 {
4392 #ifdef USE_INPUT_BUF 4399 #ifdef USE_INPUT_BUF
4393 ch_log(NULL, "feedkeys() lowlevel: %s", keys); 4400 ch_log(NULL, "feedkeys() lowlevel: %s", keys);
4394 4401
4395 int len = (int)STRLEN(keys); 4402 int len = (int)STRLEN(keys);