Skip to content

Instantly share code, notes, and snippets.

@h-east
Created July 31, 2015 09:44
Show Gist options
  • Save h-east/f9e30c5dd91e5163c54b to your computer and use it in GitHub Desktop.
Save h-east/f9e30c5dd91e5163c54b to your computer and use it in GitHub Desktop.
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