Mercurial > vim
comparison src/window.c @ 15770:77e97f159554 v8.1.0892
patch 8.1.0892: failure when closing a window when location list is in use
commit https://github.com/vim/vim/commit/eeb1b9c7ed33c152e041a286d79bf3ed00d80e40
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 10 22:59:04 2019 +0100
patch 8.1.0892: failure when closing a window when location list is in use
Problem: Failure when closing a window when location list is in use.
Solution: Handle the situation gracefully. Make sure memory for 'switchbuf'
is not freed at the wrong time. (Yegappan Lakshmanan,
closes #3928)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Feb 2019 23:00:05 +0100 |
parents | ad8b2c109b22 |
children | 99ebf78686a9 |
comparison
equal
deleted
inserted
replaced
15769:86912a1ebf3d | 15770:77e97f159554 |
---|---|
7191 list_append_number(list, 0); | 7191 list_append_number(list, 0); |
7192 list_append_number(list, 0); | 7192 list_append_number(list, 0); |
7193 } | 7193 } |
7194 | 7194 |
7195 win_T * | 7195 win_T * |
7196 win_id2wp(typval_T *argvars) | 7196 win_id2wp(int id) |
7197 { | 7197 { |
7198 win_T *wp; | 7198 win_T *wp; |
7199 tabpage_T *tp; | 7199 tabpage_T *tp; |
7200 int id = tv_get_number(&argvars[0]); | |
7201 | 7200 |
7202 FOR_ALL_TAB_WINDOWS(tp, wp) | 7201 FOR_ALL_TAB_WINDOWS(tp, wp) |
7203 if (wp->w_id == id) | 7202 if (wp->w_id == id) |
7204 return wp; | 7203 return wp; |
7205 | 7204 |