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

patch 8.2.0054: :diffget and :diffput don't have good completion

Problem:    :diffget and :diffput don't have good completion.
Solution:   Add proper completion. (Dominique Pelle, closes #5409)
This commit is contained in:
Bram Moolenaar
2019-12-29 13:56:33 +01:00
parent e20e68b40d
commit ae7dba8969
7 changed files with 68 additions and 1 deletions

View File

@@ -2702,6 +2702,15 @@ ExpandBufnames(
{
if (!buf->b_p_bl) // skip unlisted buffers
continue;
#ifdef FEAT_DIFF
if (options & BUF_DIFF_FILTER)
// Skip buffers not suitable for
// :diffget or :diffput completion.
if (buf == curbuf
|| !diff_mode_buf(curbuf) || !diff_mode_buf(buf))
continue;
#endif
p = buflist_match(&regmatch, buf, p_wic);
if (p != NULL)
{