mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.1228: not possible to process tags with a function
Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
This commit is contained in:
10
src/window.c
10
src/window.c
@@ -1326,10 +1326,12 @@ win_init(win_T *newp, win_T *oldp, int flags UNUSED)
|
||||
/* copy tagstack and folds */
|
||||
for (i = 0; i < oldp->w_tagstacklen; i++)
|
||||
{
|
||||
newp->w_tagstack[i] = oldp->w_tagstack[i];
|
||||
if (newp->w_tagstack[i].tagname != NULL)
|
||||
newp->w_tagstack[i].tagname =
|
||||
vim_strsave(newp->w_tagstack[i].tagname);
|
||||
taggy_T *tag = &newp->w_tagstack[i];
|
||||
*tag = oldp->w_tagstack[i];
|
||||
if (tag->tagname != NULL)
|
||||
tag->tagname = vim_strsave(tag->tagname);
|
||||
if (tag->user_data != NULL)
|
||||
tag->user_data = vim_strsave(tag->user_data);
|
||||
}
|
||||
newp->w_tagstackidx = oldp->w_tagstackidx;
|
||||
newp->w_tagstacklen = oldp->w_tagstacklen;
|
||||
|
Reference in New Issue
Block a user