A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/0cf2dc63bf9e3c94e1373142a6198635efd1c514 below:

do not fail when oldwin is not valid · neovim/neovim@0cf2dc6 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+3

-14

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+3

-14

lines changed Original file line number Diff line number Diff line change

@@ -3646,15 +3646,6 @@ static int qf_open_new_cwindow(qf_info_T *qi, int height)

3646 3646

if (win_split(height, flags) == FAIL) {

3647 3647

return FAIL; // not enough room for window

3648 3648

}

3649 - 3650 -

// User autocommands may have invalidated the previous window after calling

3651 -

// win_split, so add a check to ensure that the win is still here

3652 -

if (IS_LL_STACK(qi) && !win_valid(win)) {

3653 -

// close the window that was supposed to be for the loclist

3654 -

win_close(curwin, false, false);

3655 -

return FAIL;

3656 -

}

3657 - 3658 3649

RESET_BINDING(curwin);

3659 3650 3660 3651

if (IS_LL_STACK(qi)) {

Original file line number Diff line number Diff line change

@@ -1420,13 +1420,11 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)

1420 1420

p_wh = i;

1421 1421

}

1422 1422 1423 -

if (!win_valid(oldwin)) {

1424 -

return FAIL;

1423 +

if (win_valid(oldwin)) {

1424 +

// Send the window positions to the UI

1425 +

oldwin->w_pos_changed = true;

1425 1426

}

1426 1427 1427 -

// Send the window positions to the UI

1428 -

oldwin->w_pos_changed = true;

1429 - 1430 1428

return OK;

1431 1429

}

1432 1430

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4