mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.1687: mapset() not properly handling script ID
Problem: mapset() not properly handling script ID Solution: replace_termcodes() may accept a script ID closes: #12699 closes: #12697 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
committed by
Christian Brabandt
parent
cd4e4e169a
commit
7e0bae024d
@@ -323,7 +323,7 @@ CVim::SendKeys(BSTR keys)
|
||||
}
|
||||
|
||||
/* Translate key codes like <Esc> */
|
||||
str = replace_termcodes((char_u *)buffer, &ptr, REPTERM_DO_LT, NULL);
|
||||
str = replace_termcodes((char_u *)buffer, &ptr, 0, REPTERM_DO_LT, NULL);
|
||||
|
||||
/* If ptr was set, then a new buffer was allocated,
|
||||
* so we can free the old one.
|
||||
|
Reference in New Issue
Block a user