vim-patch:8.1.0434: copy_loclist() is too long

Problem:    copy_loclist() is too long.
Solution:   Split in multiple functions. (Yegappan Lakshmanan)
09037503ea
This commit is contained in:
Jan Edmund Lazo
2019-10-14 10:00:14 -04:00
parent 8257d49ff6
commit 279ff23379
2 changed files with 114 additions and 95 deletions

View File

@@ -1530,8 +1530,9 @@ static void win_init(win_T *newp, win_T *oldp, int flags)
/* Don't copy the location list. */
newp->w_llist = NULL;
newp->w_llist_ref = NULL;
} else
copy_loclist(oldp, newp);
} else {
copy_loclist_stack(oldp, newp);
}
newp->w_localdir = (oldp->w_localdir == NULL)
? NULL : vim_strsave(oldp->w_localdir);