comparison src/syntax.c @ 28179:49631bf057d3 v8.2.4615

patch 8.2.4615: mapping with escaped bar does not work in :def function Commit: https://github.com/vim/vim/commit/ac48506ac62b2ece523d5af6ea6c95b699d70b94 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 23 19:45:01 2022 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Mar 2022 21:00:05 +0100
parents c1d1639b52dd
children 86b6432aa1d8
comparison
equal deleted inserted replaced
28178:96d002169529 28179:49631bf057d3
4762 /* 4762 /*
4763 * Everything that's left, up to the next command, should be the 4763 * Everything that's left, up to the next command, should be the
4764 * filename to include. 4764 * filename to include.
4765 */ 4765 */
4766 eap->argt |= (EX_XFILE | EX_NOSPC); 4766 eap->argt |= (EX_XFILE | EX_NOSPC);
4767 separate_nextcmd(eap); 4767 separate_nextcmd(eap, FALSE);
4768 if (*eap->arg == '<' || *eap->arg == '$' || mch_isFullName(eap->arg)) 4768 if (*eap->arg == '<' || *eap->arg == '$' || mch_isFullName(eap->arg))
4769 { 4769 {
4770 // For an absolute path, "$VIM/..." or "<sfile>.." we ":source" the 4770 // For an absolute path, "$VIM/..." or "<sfile>.." we ":source" the
4771 // file. Need to expand the file name first. In other cases 4771 // file. Need to expand the file name first. In other cases
4772 // ":runtime!" is used. 4772 // ":runtime!" is used.