vim-patch:9ab6a22: runtime(doc): Improve :help :ls description formatting (#36541)

Quote the special buffer names for consistency (see :help bufname()) and
so that they're not incorrectly highlighted as optional command
arguments.

closes: vim/vim#18730

9ab6a22c90

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
zeertzjq
2025-11-13 07:04:06 +08:00
committed by GitHub
parent 94ae48ff29
commit 1571fde23e

View File

@@ -1116,6 +1116,11 @@ list of buffers. |unlisted-buffer|
thus you can always go to a specific buffer with ":buffer N"
or "N CTRL-^", where N is the buffer number.
For the file name these special values are used:
"[Prompt]" |prompt-buffer|
"[Scratch]" 'buftype' is "nofile"
"[No Name]" no file name specified
Indicators (chars in the same column are mutually exclusive):
u an unlisted buffer (only displayed when [!] is used)
|unlisted-buffer|