Created
July 31, 2015 09:44
-
-
Save h-east/f9e30c5dd91e5163c54b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/diff.c b/src/diff.c | |
--- a/src/diff.c | |
+++ b/src/diff.c | |
@@ -804,7 +804,7 @@ | |
for (idx_new = idx_orig + 1; idx_new < DB_COUNT; ++idx_new) | |
{ | |
buf = curtab->tp_diffbuf[idx_new]; | |
- if (buf == NULL) | |
+ if (buf == NULL || buf->b_ml.ml_mfp == NULL) | |
continue; | |
if (diff_write(buf, tmp_new) == FAIL) | |
continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment