diff src/optionstr.c @ 32736:161ae1985d81 v9.0.1687

patch 9.0.1687: mapset() not properly handling script ID Commit: https://github.com/vim/vim/commit/7e0bae024d4c1673cff31763227ad52b936fa56f Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Aug 11 23:15:38 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2023 23:30:03 +0200
parents 4091ae33b9ec
children 1f3bcb7f3bd0
line wrap: on
line diff
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -2102,7 +2102,7 @@ did_set_pastetoggle(optset_T *args UNUSE
     // translate key codes like in a mapping
     if (*p_pt)
     {
-	(void)replace_termcodes(p_pt, &p,
+	(void)replace_termcodes(p_pt, &p, 0,
 		REPTERM_FROM_PART | REPTERM_DO_LT, NULL);
 	if (p != NULL)
 	{