mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
vim-patch:7.4.2246
Problem: Oldfiles test fails.
Solution: Include missing changes.
d6f2ee32dc
This commit is contained in:
@@ -6213,27 +6213,12 @@ void ex_oldfiles(exarg_T *eap)
|
||||
if (l == NULL) {
|
||||
msg((char_u *)_("No old files"));
|
||||
} else {
|
||||
char_u *reg_pat = NULL;
|
||||
regmatch_T regmatch;
|
||||
|
||||
if (*eap->arg != NUL) {
|
||||
if (skip_vimgrep_pat(eap->arg, ®_pat, NULL) == NULL) {
|
||||
EMSG(_(e_invalpat));
|
||||
return;
|
||||
}
|
||||
regmatch.regprog = vim_regcomp(reg_pat, p_magic ? RE_MAGIC : 0);
|
||||
if (regmatch.regprog == NULL) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
msg_start();
|
||||
msg_scroll = TRUE;
|
||||
for (li = l->lv_first; li != NULL && !got_int; li = li->li_next) {
|
||||
nr++;
|
||||
const char *fname = tv_get_string(&li->li_tv);
|
||||
if (reg_pat == NULL || *reg_pat == NUL
|
||||
|| vim_regexec(®match, (char_u *)fname, (colnr_T)0)) {
|
||||
if (!message_filtered((char_u *)fname)) {
|
||||
msg_outnum(nr);
|
||||
MSG_PUTS(": ");
|
||||
msg_outtrans((char_u *)tv_get_string(&li->li_tv));
|
||||
@@ -6243,9 +6228,6 @@ void ex_oldfiles(exarg_T *eap)
|
||||
os_breakcheck();
|
||||
}
|
||||
}
|
||||
if (*eap->arg != NUL) {
|
||||
vim_regfree(regmatch.regprog);
|
||||
}
|
||||
|
||||
/* Assume "got_int" was set to truncate the listing. */
|
||||
got_int = FALSE;
|
||||
|
@@ -198,7 +198,7 @@ static const int included_patches[] = {
|
||||
2249,
|
||||
2248,
|
||||
// 2247 NA
|
||||
// 2246,
|
||||
2246,
|
||||
2245,
|
||||
2244,
|
||||
// 2243 NA
|
||||
|
Reference in New Issue
Block a user