diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-29 20:44:23 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-29 21:00:11 -0500 |
commit | 31f31b40a8af67a3a55e85fa5dfa63d5a5999acc (patch) | |
tree | 705f39a1649e74e8fd0b107f2f5dca9349bc4bb1 /runtime | |
parent | f719b8898ba8aa18f0411be1924eea132a3b103e (diff) | |
download | rneovim-31f31b40a8af67a3a55e85fa5dfa63d5a5999acc.tar.gz rneovim-31f31b40a8af67a3a55e85fa5dfa63d5a5999acc.tar.bz2 rneovim-31f31b40a8af67a3a55e85fa5dfa63d5a5999acc.zip |
vim-patch:8.2.0077: settagstack() cannot truncate at current index
Problem: settagstack() cannot truncate at current index.
Solution: Add the "t" action. (Yegappan Lakshmanan, closes vim/vim#5417)
https://github.com/vim/vim/commit/271fa08a35b8d320d3a40db4ddae83b698fdd4fb
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 69b8b3cf39..e0ce83f8d2 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7550,11 +7550,21 @@ settagstack({nr}, {dict} [, {action}]) *settagstack()* {nr} can be the window number or the |window-ID|. For a list of supported items in {dict}, refer to - |gettagstack()| + |gettagstack()|. "curidx" takes effect before changing the tag + stack. *E962* - If {action} is not present or is set to 'r', then the tag - stack is replaced. If {action} is set to 'a', then new entries - from {dict} are pushed onto the tag stack. + How the tag stack is modified depends on the {action} + argument: + - If {action} is not present or is set to 'r', then the tag + stack is replaced. + - If {action} is set to 'a', then new entries from {dict} are + pushed (added) onto the tag stack. + - If {action} is set to 't', then all the entries from the + current entry in the tag stack or "curidx" in {dict} are + removed and then new entries are pushed to the stack. + + The current index is set to one after the length of the tag + stack after the modification. Returns zero for success, -1 for failure. |