comparison runtime/doc/eval.txt @ 19033:f0312cf3c792 v8.2.0077

patch 8.2.0077: settagstack() cannot truncate at current index Commit: https://github.com/vim/vim/commit/271fa08a35b8d320d3a40db4ddae83b698fdd4fb Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 2 14:02:16 2020 +0100 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 https://github.com/vim/vim/issues/5417)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Jan 2020 14:15:05 +0100
parents e378907d79bf
children d20ed2e5a776
comparison
equal deleted inserted replaced
19032:02dcaab77547 19033:f0312cf3c792
8772 settagstack({nr}, {dict} [, {action}]) *settagstack()* 8772 settagstack({nr}, {dict} [, {action}]) *settagstack()*
8773 Modify the tag stack of the window {nr} using {dict}. 8773 Modify the tag stack of the window {nr} using {dict}.
8774 {nr} can be the window number or the |window-ID|. 8774 {nr} can be the window number or the |window-ID|.
8775 8775
8776 For a list of supported items in {dict}, refer to 8776 For a list of supported items in {dict}, refer to
8777 |gettagstack()| 8777 |gettagstack()|. "curidx" takes effect before changing the tag
8778 stack.
8778 *E962* 8779 *E962*
8779 If {action} is not present or is set to 'r', then the tag 8780 How the tag stack is modified depends on the {action}
8780 stack is replaced. If {action} is set to 'a', then new entries 8781 argument:
8781 from {dict} are pushed onto the tag stack. 8782 - If {action} is not present or is set to 'r', then the tag
8783 stack is replaced.
8784 - If {action} is set to 'a', then new entries from {dict} are
8785 pushed (added) onto the tag stack.
8786 - If {action} is set to 't', then all the entries from the
8787 current entry in the tag stack or "curidx" in {dict} are
8788 removed and then new entries are pushed to the stack.
8789
8790 The current index is set to one after the length of the tag
8791 stack after the modification.
8782 8792
8783 Returns zero for success, -1 for failure. 8793 Returns zero for success, -1 for failure.
8784 8794
8785 Examples: 8795 Examples:
8786 Set current index of the tag stack to 4: > 8796 Set current index of the tag stack to 4: >