aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/options.lua13
-rw-r--r--src/nvim/quickfix.c5
2 files changed, 8 insertions, 10 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index e9fa18c98f..e687490704 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -5046,13 +5046,12 @@ local options = {
cb = 'did_set_xhistory',
defaults = 10,
desc = [=[
- Like 'chistory', but for the location list stack associated with the
- current window. If the option is changed in either the location list
- window itself or the the window that is associated with the location
- list stack, the new value will also be applied to the other one. This
- means this value will always be the same for a given location list
- window and its corresponding window. See |quickfix-stack| for
- additional info.
+ Like 'chistory', but for the location list stack associated with a
+ window. If the option is changed in either the location list window
+ itself or the window that is associated with the location list stack,
+ the new value will also be applied to the other one. This means this
+ value will always be the same for a given location list window and its
+ corresponding window. See |quickfix-stack| for additional info.
]=],
full_name = 'lhistory',
scope = { 'win' },
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 0e6b7b9ce4..e1ec8aab4f 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -2011,9 +2011,9 @@ void qf_resize_stack(int n)
/// Resize location list stack for window 'wp' to be able to hold n amount of lists.
void 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 (IS_LL_WINDOW(curwin)) {
+ if (IS_LL_WINDOW(wp)) {
qf_sync_llw_to_win(wp);
} else {
qf_sync_win_to_llw(wp);
@@ -2107,7 +2107,6 @@ static qf_info_T *qf_alloc_stack(qfltype_T qfltype, int n)
}
/// Allocate memory for qf_lists member of qf_info_T struct.
-/// 'actual' is the actual amount of lists that have been allocated for
static qf_list_T *qf_alloc_list_stack(int n)
FUNC_ATTR_NONNULL_RET
{