diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-10-24 20:41:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-24 20:41:39 -0700 |
| commit | 4f4f5ef4fd2f54db5d527768b4b1a94f737b3834 (patch) | |
| tree | 8082f1361a4447847f676e8a577d11b59fd302fd /src/nvim/window.c | |
| parent | 53b025887e28888f8dba78ff57afc001d1a6428b (diff) | |
| parent | ced2a38ad4dce6898c800dd68026c7b1823e484e (diff) | |
| download | rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.tar.gz rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.tar.bz2 rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.zip | |
Merge #11213 from janlazo/vim-8.1.0014
vim-patch:8.1.{14,288,345,410,434,438,455}
Diffstat (limited to 'src/nvim/window.c')
| -rw-r--r-- | src/nvim/window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index ce5be8e904..0531ad1938 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -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); @@ -1574,7 +1575,7 @@ static void win_init_some(win_T *newp, win_T *oldp) /// Check if "win" is a pointer to an existing window in the current tabpage. /// /// @param win window to check -bool win_valid(win_T *win) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT +bool win_valid(const win_T *win) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { if (win == NULL) { return false; |