0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1546: some commands for opening a file don't use 'switchbuf'

Problem:    Some commands for opening a file don't use 'switchbuf'.
Solution:   Use 'switchbuf' for more commands. (Yegappan Lakshmanan,
            closes #12383, closes #12381)
This commit is contained in:
Yegappan Lakshmanan
2023-05-12 17:49:13 +01:00
committed by Bram Moolenaar
parent 8667a5678f
commit 54be5fb382
5 changed files with 106 additions and 18 deletions

View File

@@ -2560,7 +2560,6 @@ buflist_getfpos(void)
}
}
#if defined(FEAT_QUICKFIX) || defined(FEAT_EVAL) || defined(FEAT_SPELL) || defined(PROTO)
/*
* Find file in buffer list by name (it has to be for the current window).
* Returns NULL if not found.
@@ -2586,7 +2585,6 @@ buflist_findname_exp(char_u *fname)
}
return buf;
}
#endif
/*
* Find file in buffer list by name (it has to be for the current window).