diff options
Diffstat (limited to 'xdiff')
-rw-r--r-- | xdiff/xemit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xdiff/xemit.c b/xdiff/xemit.c index 29cec1259..bfa53d3dc 100644 --- a/xdiff/xemit.c +++ b/xdiff/xemit.c @@ -231,6 +231,8 @@ int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb, long fe1 = get_func_line(xe, xecfg, NULL, xche->i1 + xche->chg1, xe->xdf1.nrec); + while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1)) + fe1--; if (fe1 < 0) fe1 = xe->xdf1.nrec; if (fe1 > e1) { |