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)
271fa08a35
This commit is contained in:
Jan Edmund Lazo
2020-01-29 20:44:23 -05:00
parent f719b8898b
commit 31f31b40a8
4 changed files with 65 additions and 14 deletions

View File

@@ -16242,7 +16242,8 @@ static void f_settagstack(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (actstr == NULL) {
return;
}
if ((*actstr == 'r' || *actstr == 'a') && actstr[1] == NUL) {
if ((*actstr == 'r' || *actstr == 'a' || *actstr == 't')
&& actstr[1] == NUL) {
action = *actstr;
} else {
EMSG2(_(e_invact2), actstr);