vim-patch:989faa4fce65 (#27880)

runtime(doc): make :h tag-! more consistent (vim/vim#14208)

- Use "on" and "off" for 'winfixbuf' option values.
- Retab the table.

989faa4fce
This commit is contained in:
zeertzjq
2024-03-16 16:38:40 +08:00
committed by GitHub
parent 9c2fdfe6e7
commit 848e64322a

View File

@@ -400,23 +400,23 @@ the pattern.
*tag-!* *tag-!*
If the tag is in the current file this will always work. Otherwise the If the tag is in the current file this will always work. Otherwise the
performed actions depend on whether the current file was changed, whether a ! performed actions depend on whether the current file was changed, whether a !
is added to the command and on the 'autowrite' option: is added to the command and on the 'autowrite' and 'winfixbuf' options:
tag in file autowrite ~ tag in file winfixbuf autowrite ~
current file changed ! winfixbuf option action ~ current file changed ! option option action ~
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
yes x x no x goto tag yes x x off x goto tag
no no x no x read other file, goto tag no no x off x read other file, goto tag
no yes yes no x abandon current file, no yes yes off x abandon current file,
read other file, goto tag read other file, goto tag
no yes no no on write current file, no yes no off on write current file,
read other file, goto tag read other file, goto tag
no yes no no off fail no yes no off off fail
yes x yes x x goto tag yes x yes x x goto tag
no no no yes x fail no no no on x fail
no yes no yes x fail no yes no on x fail
no yes no yes on fail no yes no on on fail
no yes no yes off fail no yes no on off fail
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
- If the tag is in the current file, the command will always work. - If the tag is in the current file, the command will always work.