Mercurial > vim
comparison src/normal.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 | 203b0f3a741a |
children | 6b39ab99e367 |
comparison
equal
deleted
inserted
replaced
25993:cbdbf71338a0 | 25994:e8873138ffbb |
---|---|
3739 if (cmdchar == 'K' && !kp_help) | 3739 if (cmdchar == 'K' && !kp_help) |
3740 { | 3740 { |
3741 ptr = vim_strnsave(ptr, n); | 3741 ptr = vim_strnsave(ptr, n); |
3742 if (kp_ex) | 3742 if (kp_ex) |
3743 // Escape the argument properly for an Ex command | 3743 // Escape the argument properly for an Ex command |
3744 p = vim_strsave_fnameescape(ptr, FALSE); | 3744 p = vim_strsave_fnameescape(ptr, VSE_NONE); |
3745 else | 3745 else |
3746 // Escape the argument properly for a shell command | 3746 // Escape the argument properly for a shell command |
3747 p = vim_strsave_shellescape(ptr, TRUE, TRUE); | 3747 p = vim_strsave_shellescape(ptr, TRUE, TRUE); |
3748 vim_free(ptr); | 3748 vim_free(ptr); |
3749 if (p == NULL) | 3749 if (p == NULL) |