To: vim-dev@vim.org Subject: Patch 5.6.022 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.022 Problem: ":e \~" expands to ":e ~\$ceelen", which doesn't work. Solution: Re-insert the backslash before the '~'. Files: src/ex_getln.c *** ../vim-5.6.21/src/ex_getln.c Sat Mar 25 13:10:19 2000 --- src/ex_getln.c Sat Mar 25 17:03:51 2000 *************** *** 2181,2186 **** --- 2181,2201 ---- vim_free(cmd_files[i]); cmd_files[i] = p; } + + /* If 'str' starts with "\~", replace "~" at start of + * cmd_files[i] with "\~". */ + if (str[0] == '\\' && str[1] == '~' + && cmd_files[i][0] == '~') + { + p = alloc(STRLEN(cmd_files[i]) + 2); + if (p != NULL) + { + p[0] = '\\'; + STRCPY(p + 1, cmd_files[i]); + vim_free(cmd_files[i]); + cmd_files[i] = p; + } + } } expand_set_path = FALSE; } *** ../vim-5.6.21/src/version.c Sat Mar 25 17:08:58 2000 --- src/version.c Sat Mar 25 17:05:07 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 22, /**/ -- DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the penalty. And here in Castle Anthrax, we have but one punishment ... you must tie her down on a bed ... and spank her. Come! GIRLS: A spanking! A spanking! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/