Problem: Expanding ## fails to escape backtick.
Solution: Escape a backtick in a file name. (closes #3257)
#ifndef BACKSLASH_IN_FILENAME
|| *p == '\\'
#endif
- )
+ || *p == '`')
{
/* insert a backslash */
if (retval != NULL)
set swapfile&
endfunc
+func Test_edit_backtick()
+ next a\`b c
+ call assert_equal('a`b', expand('%'))
+ next
+ call assert_equal('c', expand('%'))
+ call assert_equal('a\`b c', expand('##'))
+endfunc
+
func Test_edit_quit()
edit foo.txt
split
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 219,
/**/
218,
/**/