comparison src/map.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 990b47e15cd7
children b545334ae654
comparison
equal deleted inserted replaced
22861:459c4d8b3a34 22862:6d50182e7e24
1637 * Copy "p" to allocated memory, escaping K_SPECIAL and CSI so that the result 1637 * Copy "p" to allocated memory, escaping K_SPECIAL and CSI so that the result
1638 * can be put in the typeahead buffer. 1638 * can be put in the typeahead buffer.
1639 * Returns NULL when out of memory. 1639 * Returns NULL when out of memory.
1640 */ 1640 */
1641 char_u * 1641 char_u *
1642 vim_strsave_escape_csi( 1642 vim_strsave_escape_csi(char_u *p)
1643 char_u *p)
1644 { 1643 {
1645 char_u *res; 1644 char_u *res;
1646 char_u *s, *d; 1645 char_u *s, *d;
1647 1646
1648 // Need a buffer to hold up to three times as much. Four in case of an 1647 // Need a buffer to hold up to three times as much. Four in case of an