Mercurial > vim
comparison src/evalfunc.c @ 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 | dd9ab0674eec |
children | fd1070ff696b |
comparison
equal
deleted
inserted
replaced
19032:02dcaab77547 | 19033:f0312cf3c792 |
---|---|
6774 { | 6774 { |
6775 char_u *actstr; | 6775 char_u *actstr; |
6776 actstr = tv_get_string_chk(&argvars[2]); | 6776 actstr = tv_get_string_chk(&argvars[2]); |
6777 if (actstr == NULL) | 6777 if (actstr == NULL) |
6778 return; | 6778 return; |
6779 if ((*actstr == 'r' || *actstr == 'a') && actstr[1] == NUL) | 6779 if ((*actstr == 'r' || *actstr == 'a' || *actstr == 't') |
6780 && actstr[1] == NUL) | |
6780 action = *actstr; | 6781 action = *actstr; |
6781 else | 6782 else |
6782 { | 6783 { |
6783 semsg(_(e_invact2), actstr); | 6784 semsg(_(e_invact2), actstr); |
6784 return; | 6785 return; |