mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user