mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
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 #5417)
This commit is contained in:
@@ -6776,7 +6776,8 @@ f_settagstack(typval_T *argvars, typval_T *rettv)
|
||||
actstr = tv_get_string_chk(&argvars[2]);
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user