mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.1288: Using wrong window in ll_resize_stack()
Problem: Using wrong window in ll_resize_stack() (after v9.1.1287) Solution: Use "wp" instead of "curwin", even though they are always the same value. Fix typos in documentation (zeertzjq). closes: #17080 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
2525573de7
commit
b71f1309a2
@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 9.1. Last change: 2025 Apr 07
|
*options.txt* For Vim version 9.1. Last change: 2025 Apr 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -5341,13 +5341,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
local to window
|
local to window
|
||||||
{only available when compiled with the |+quickfix|
|
{only available when compiled with the |+quickfix|
|
||||||
feature}
|
feature}
|
||||||
Like 'chistory', but for the location list stack associated with the
|
Like 'chistory', but for the location list stack associated with a
|
||||||
current window. If the option is changed in either the location list
|
window. If the option is changed in either the location list window
|
||||||
window itself or the the window that is associated with the location
|
itself or the window that is associated with the location list stack,
|
||||||
list stack, the new value will also be applied to the other one. This
|
the new value will also be applied to the other one. This means this
|
||||||
means this value will always be the same for a given location list
|
value will always be the same for a given location list window and its
|
||||||
window and its corresponding window. See |quickfix-stack| for
|
corresponding window. See |quickfix-stack| for additional info.
|
||||||
additional info.
|
|
||||||
|
|
||||||
*'linebreak'* *'lbr'* *'nolinebreak'* *'nolbr'*
|
*'linebreak'* *'lbr'* *'nolinebreak'* *'nolbr'*
|
||||||
'linebreak' 'lbr' boolean (default off)
|
'linebreak' 'lbr' boolean (default off)
|
||||||
|
@ -2102,7 +2102,7 @@ qf_free_list_stack_items(qf_info_T *qi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Free a qf_ifo_T struct completely
|
* Free a qf_info_T struct completely
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
qf_free_lists(qf_info_T *qi)
|
qf_free_lists(qf_info_T *qi)
|
||||||
@ -2365,9 +2365,9 @@ qf_resize_stack(int n)
|
|||||||
int
|
int
|
||||||
ll_resize_stack(win_T *wp, int n)
|
ll_resize_stack(win_T *wp, int n)
|
||||||
{
|
{
|
||||||
// check if current window is a location list window;
|
// check if given window is a location list window;
|
||||||
// if so then sync its 'lhistory' to the parent window or vice versa
|
// if so then sync its 'lhistory' to the parent window or vice versa
|
||||||
if (IS_LL_WINDOW(curwin))
|
if (IS_LL_WINDOW(wp))
|
||||||
qf_sync_llw_to_win(wp);
|
qf_sync_llw_to_win(wp);
|
||||||
else
|
else
|
||||||
qf_sync_win_to_llw(wp);
|
qf_sync_win_to_llw(wp);
|
||||||
@ -2499,8 +2499,6 @@ qf_alloc_stack(qfltype_T qfltype, int n)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate memory for qf_lists member of qf_info_T struct.
|
* Allocate memory for qf_lists member of qf_info_T struct.
|
||||||
* 'actual' is the actual amount of lists that have been allocated for
|
|
||||||
* (only set when function returns sucessfully)
|
|
||||||
*/
|
*/
|
||||||
static qf_list_T *
|
static qf_list_T *
|
||||||
qf_alloc_list_stack(int n)
|
qf_alloc_list_stack(int n)
|
||||||
|
@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
1288,
|
||||||
/**/
|
/**/
|
||||||
1287,
|
1287,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user