Mercurial > vim
comparison src/vim9execute.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 | dd4e86558836 |
children | 3d92646fe6c8 |
comparison
equal
deleted
inserted
replaced
25993:cbdbf71338a0 | 25994:e8873138ffbb |
---|---|
1145 return FAIL; | 1145 return FAIL; |
1146 s = str; | 1146 s = str; |
1147 while ((e = vim_strchr(s, '\n')) != NULL) | 1147 while ((e = vim_strchr(s, '\n')) != NULL) |
1148 { | 1148 { |
1149 *e = NUL; | 1149 *e = NUL; |
1150 p = vim_strsave_fnameescape(s, FALSE); | 1150 p = vim_strsave_fnameescape(s, |
1151 VSE_NONE); | |
1151 if (p != NULL) | 1152 if (p != NULL) |
1152 { | 1153 { |
1153 ga_concat(&ga, p); | 1154 ga_concat(&ga, p); |
1154 ga_concat(&ga, (char_u *)" "); | 1155 ga_concat(&ga, (char_u *)" "); |
1155 vim_free(p); | 1156 vim_free(p); |