comparison src/evalfunc.c @ 25994:e8873138ffbb v8.2.3530

patch 8.2.3530: ":buf {a}" fails while ":edit {a}" works Commit: https://github.com/vim/vim/commit/21c1a0c2f10575dbb72fa873d33f0c1f6e170aa7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 17 17:20:23 2021 +0100 patch 8.2.3530: ":buf \{a}" fails while ":edit \{a}" works Problem: ":buf \{a}" fails while ":edit \{a}" works. Solution: Unescape "\{". (closes https://github.com/vim/vim/issues/8917)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Oct 2021 18:30:04 +0200
parents d7e1cf30728c
children afc5987e9670
comparison
equal deleted inserted replaced
25993:cbdbf71338a0 25994:e8873138ffbb
3884 { 3884 {
3885 if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) 3885 if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL)
3886 return; 3886 return;
3887 3887
3888 rettv->vval.v_string = vim_strsave_fnameescape( 3888 rettv->vval.v_string = vim_strsave_fnameescape(
3889 tv_get_string(&argvars[0]), FALSE); 3889 tv_get_string(&argvars[0]), VSE_NONE);
3890 rettv->v_type = VAR_STRING; 3890 rettv->v_type = VAR_STRING;
3891 } 3891 }
3892 3892
3893 /* 3893 /*
3894 * "foreground()" function 3894 * "foreground()" function