mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.810
Problem: With a sequence of commands using buffers in diff mode E749 is
given. (itchyny)
Solution: Skip unloaded buffer. (Hirohito Higashi)
9dd33af4ba
This commit is contained in:
parent
cfce719c66
commit
2b2f9ccf8c
@ -763,8 +763,8 @@ void ex_diffupdate(exarg_T *eap)
|
||||
// Make a difference between the first buffer and every other.
|
||||
for (idx_new = idx_orig + 1; idx_new < DB_COUNT; ++idx_new) {
|
||||
buf_T *buf = curtab->tp_diffbuf[idx_new];
|
||||
if (buf == NULL) {
|
||||
continue;
|
||||
if (buf == NULL || buf->b_ml.ml_mfp == NULL) {
|
||||
continue; // skip buffer that isn't loaded
|
||||
}
|
||||
|
||||
if (diff_write(buf, tmp_new) == FAIL) {
|
||||
|
@ -478,7 +478,7 @@ static int included_patches[] = {
|
||||
813,
|
||||
// 812,
|
||||
// 811,
|
||||
// 810,
|
||||
810,
|
||||
809,
|
||||
// 808 NA
|
||||
807,
|
||||
|
Loading…
Reference in New Issue
Block a user