0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4615: mapping with escaped bar does not work in :def function

Problem:    Mapping with escaped bar does not work in :def function. (Sergey
            Vlasov)
Solution:   Do not remove the backslash. (closes #10002)
This commit is contained in:
Bram Moolenaar
2022-03-23 19:45:01 +00:00
parent c20e46a4e3
commit ac48506ac6
6 changed files with 27 additions and 10 deletions

View File

@@ -4764,7 +4764,7 @@ syn_cmd_include(exarg_T *eap, int syncing UNUSED)
* filename to include.
*/
eap->argt |= (EX_XFILE | EX_NOSPC);
separate_nextcmd(eap);
separate_nextcmd(eap, FALSE);
if (*eap->arg == '<' || *eap->arg == '$' || mch_isFullName(eap->arg))
{
// For an absolute path, "$VIM/..." or "<sfile>.." we ":source" the