mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
commit
12938b82fb
@ -1741,12 +1741,15 @@ int buflist_findpat(
|
||||
int toggledollar;
|
||||
|
||||
if (pattern_end == pattern + 1 && (*pattern == '%' || *pattern == '#')) {
|
||||
if (*pattern == '%')
|
||||
if (*pattern == '%') {
|
||||
match = curbuf->b_fnum;
|
||||
else
|
||||
} else {
|
||||
match = curwin->w_alt_fnum;
|
||||
if (diffmode && !diff_mode_buf(buflist_findnr(match)))
|
||||
}
|
||||
buf_T *found_buf = buflist_findnr(match);
|
||||
if (diffmode && !(found_buf && diff_mode_buf(found_buf))) {
|
||||
match = -1;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Try four ways of matching a listed buffer:
|
||||
|
@ -2077,7 +2077,7 @@ static void didset_options2(void)
|
||||
(void)highlight_changed();
|
||||
|
||||
// Parse default for 'clipboard'.
|
||||
opt_strings_flags(p_cb, p_cb_values, &cb_flags, true);
|
||||
(void)opt_strings_flags(p_cb, p_cb_values, &cb_flags, true);
|
||||
|
||||
// Parse default for 'fillchars'.
|
||||
(void)set_chars_option(&p_fcs);
|
||||
|
Loading…
Reference in New Issue
Block a user