mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 08:02:38 +00:00
vim-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 vim/vim#5409)
ae7dba8969
This commit is contained in:
@@ -2345,6 +2345,15 @@ int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options)
|
||||
if (!buf->b_p_bl) { // skip unlisted buffers
|
||||
continue;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
p = buflist_match(®match, buf, p_wic);
|
||||
if (p != NULL) {
|
||||
if (round == 1) {
|
||||
|
||||
Reference in New Issue
Block a user