Mercurial > vim
comparison src/vim.h @ 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 | 16a7d1154be8 |
children | db9fdfb86679 |
comparison
equal
deleted
inserted
replaced
25993:cbdbf71338a0 | 25994:e8873138ffbb |
---|---|
289 # define MAXPATHL 256 | 289 # define MAXPATHL 256 |
290 # endif | 290 # endif |
291 #endif | 291 #endif |
292 #ifdef BACKSLASH_IN_FILENAME | 292 #ifdef BACKSLASH_IN_FILENAME |
293 # define PATH_ESC_CHARS ((char_u *)" \t\n*?[{`%#'\"|!<") | 293 # define PATH_ESC_CHARS ((char_u *)" \t\n*?[{`%#'\"|!<") |
294 # define BUFFER_ESC_CHARS ((char_u *)" \t\n*?[`%#'\"|!<") | |
294 #else | 295 #else |
295 # ifdef VMS | 296 # ifdef VMS |
296 // VMS allows a lot of characters in the file name | 297 // VMS allows a lot of characters in the file name |
297 # define PATH_ESC_CHARS ((char_u *)" \t\n*?{`\\%#'\"|!") | 298 # define PATH_ESC_CHARS ((char_u *)" \t\n*?{`\\%#'\"|!") |
298 # define SHELL_ESC_CHARS ((char_u *)" \t\n*?{`\\%#'|!()&") | 299 # define SHELL_ESC_CHARS ((char_u *)" \t\n*?{`\\%#'|!()&") |
299 # else | 300 # else |
300 # define PATH_ESC_CHARS ((char_u *)" \t\n*?[{`$\\%#'\"|!<") | 301 # define PATH_ESC_CHARS ((char_u *)" \t\n*?[{`$\\%#'\"|!<") |
301 # define SHELL_ESC_CHARS ((char_u *)" \t\n*?[{`$\\%#'\"|!<>();&") | 302 # define SHELL_ESC_CHARS ((char_u *)" \t\n*?[{`$\\%#'\"|!<>();&") |
302 # endif | 303 # endif |
304 # define BUFFER_ESC_CHARS ((char_u *)" \t\n*?[`$\\%#'\"|!<") | |
303 #endif | 305 #endif |
304 | 306 |
305 // length of a buffer to store a number in ASCII (64 bits binary + NUL) | 307 // length of a buffer to store a number in ASCII (64 bits binary + NUL) |
306 #define NUMBUFLEN 65 | 308 #define NUMBUFLEN 65 |
307 | 309 |
2764 | 2766 |
2765 // flags used by user commands and :autocmd | 2767 // flags used by user commands and :autocmd |
2766 #define UC_BUFFER 1 // -buffer: local to current buffer | 2768 #define UC_BUFFER 1 // -buffer: local to current buffer |
2767 #define UC_VIM9 2 // {} argument: Vim9 syntax. | 2769 #define UC_VIM9 2 // {} argument: Vim9 syntax. |
2768 | 2770 |
2771 // flags used by vim_strsave_escaped() | |
2772 #define VSE_NONE 0 | |
2773 #define VSE_SHELL 1 // escape for a shell command | |
2774 #define VSE_BUFFER 2 // escape for a ":buffer" command | |
2769 | 2775 |
2770 #endif // VIM__H | 2776 #endif // VIM__H |