Mercurial > vim
comparison src/terminal.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 | 1266292376c7 |
children | 6b39ab99e367 |
comparison
equal
deleted
inserted
replaced
25993:cbdbf71338a0 | 25994:e8873138ffbb |
---|---|
665 char_u *s = tv_get_string_chk(&item->li_tv); | 665 char_u *s = tv_get_string_chk(&item->li_tv); |
666 char_u *p; | 666 char_u *p; |
667 | 667 |
668 if (s == NULL) | 668 if (s == NULL) |
669 break; | 669 break; |
670 p = vim_strsave_fnameescape(s, FALSE); | 670 p = vim_strsave_fnameescape(s, VSE_NONE); |
671 if (p == NULL) | 671 if (p == NULL) |
672 break; | 672 break; |
673 ga_concat(&ga, p); | 673 ga_concat(&ga, p); |
674 vim_free(p); | 674 vim_free(p); |
675 ga_append(&ga, ' '); | 675 ga_append(&ga, ' '); |