comparison src/ex_getln.c @ 22862:6d50182e7e24 v8.2.1978

patch 8.2.1978: making a mapping work in all modes is complicated Commit: https://github.com/vim/vim/commit/957cf67d50516ba98716f59c9e1cb6412ec1535d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 12 14:21:06 2020 +0100 patch 8.2.1978: making a mapping work in all modes is complicated Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7282, closes 4784, based on patch by Bjorn Linse)
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 Nov 2020 14:30:04 +0100
parents e82579016863
children 5a7db84713dc
comparison
equal deleted inserted replaced
22861:459c4d8b3a34 22862:6d50182e7e24
1709 // anything, such as stop completion. 1709 // anything, such as stop completion.
1710 do 1710 do
1711 c = safe_vgetc(); 1711 c = safe_vgetc();
1712 while (c == K_IGNORE || c == K_NOP); 1712 while (c == K_IGNORE || c == K_NOP);
1713 1713
1714 if (c == K_COMMAND
1715 && do_cmdline(NULL, getcmdkeycmd, NULL, DOCMD_NOWAIT) == OK)
1716 goto cmdline_changed;
1717
1714 if (KeyTyped) 1718 if (KeyTyped)
1715 { 1719 {
1716 some_key_typed = TRUE; 1720 some_key_typed = TRUE;
1717 #ifdef FEAT_RIGHTLEFT 1721 #ifdef FEAT_RIGHTLEFT
1718 if (cmd_hkmap) 1722 if (cmd_hkmap)