mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.4a.030
Problem: Missing find_win_for_buf(). (toothpik) Solution: Add missing changes.
This commit is contained in:
30
src/buffer.c
30
src/buffer.c
@@ -5313,18 +5313,14 @@ buf_spname(buf)
|
|||||||
#if defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)
|
#if defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)
|
||||||
if (bt_quickfix(buf))
|
if (bt_quickfix(buf))
|
||||||
{
|
{
|
||||||
win_T *win = NULL;
|
win_T *win;
|
||||||
tabpage_T *tp;
|
tabpage_T *tp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For location list window, w_llist_ref points to the location list.
|
* For location list window, w_llist_ref points to the location list.
|
||||||
* For quickfix window, w_llist_ref is NULL.
|
* For quickfix window, w_llist_ref is NULL.
|
||||||
*/
|
*/
|
||||||
FOR_ALL_TAB_WINDOWS(tp, win)
|
if (find_win_for_buf(buf, &win, &tp) == OK && win->w_llist_ref != NULL)
|
||||||
if (win->w_buffer == buf)
|
|
||||||
goto win_found;
|
|
||||||
win_found:
|
|
||||||
if (win != NULL && win->w_llist_ref != NULL)
|
|
||||||
return (char_u *)_(msg_loclist);
|
return (char_u *)_(msg_loclist);
|
||||||
else
|
else
|
||||||
return (char_u *)_(msg_qflist);
|
return (char_u *)_(msg_qflist);
|
||||||
@@ -5345,6 +5341,28 @@ win_found:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \
|
||||||
|
|| defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \
|
||||||
|
|| defined(PROTO)
|
||||||
|
/*
|
||||||
|
* Find a window for buffer "buf".
|
||||||
|
* If found OK is returned and "wp" and "tp" are set to the window and tabpage.
|
||||||
|
* If not found FAIL is returned.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
find_win_for_buf(buf, wp, tp)
|
||||||
|
buf_T *buf;
|
||||||
|
win_T **wp;
|
||||||
|
tabpage_T **tp;
|
||||||
|
{
|
||||||
|
FOR_ALL_TAB_WINDOWS(*tp, *wp)
|
||||||
|
if ((*wp)->w_buffer == buf)
|
||||||
|
goto win_found;
|
||||||
|
return FAIL;
|
||||||
|
win_found:
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_SIGNS) || defined(PROTO)
|
#if defined(FEAT_SIGNS) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
|
@@ -727,6 +727,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
30,
|
||||||
/**/
|
/**/
|
||||||
29,
|
29,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user