comparison src/window.c @ 16447:54ffc82f38a8 v8.1.1228

patch 8.1.1228: not possible to process tags with a function commit https://github.com/vim/vim/commit/45e18cbdc40afd8144d20dcc07ad2d981636f4c9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 28 18:05:35 2019 +0200 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 https://github.com/vim/vim/issues/4010)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Apr 2019 18:15:07 +0200
parents 8c3a1bd270bb
children 854fb0ad4be6
comparison
equal deleted inserted replaced
16446:cee0719a1b4b 16447:54ffc82f38a8
1324 ? NULL : vim_strsave(oldp->w_localdir); 1324 ? NULL : vim_strsave(oldp->w_localdir);
1325 1325
1326 /* copy tagstack and folds */ 1326 /* copy tagstack and folds */
1327 for (i = 0; i < oldp->w_tagstacklen; i++) 1327 for (i = 0; i < oldp->w_tagstacklen; i++)
1328 { 1328 {
1329 newp->w_tagstack[i] = oldp->w_tagstack[i]; 1329 taggy_T *tag = &newp->w_tagstack[i];
1330 if (newp->w_tagstack[i].tagname != NULL) 1330 *tag = oldp->w_tagstack[i];
1331 newp->w_tagstack[i].tagname = 1331 if (tag->tagname != NULL)
1332 vim_strsave(newp->w_tagstack[i].tagname); 1332 tag->tagname = vim_strsave(tag->tagname);
1333 if (tag->user_data != NULL)
1334 tag->user_data = vim_strsave(tag->user_data);
1333 } 1335 }
1334 newp->w_tagstackidx = oldp->w_tagstackidx; 1336 newp->w_tagstackidx = oldp->w_tagstackidx;
1335 newp->w_tagstacklen = oldp->w_tagstacklen; 1337 newp->w_tagstacklen = oldp->w_tagstacklen;
1336 #ifdef FEAT_FOLDING 1338 #ifdef FEAT_FOLDING
1337 copyFoldingState(oldp, newp); 1339 copyFoldingState(oldp, newp);