diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-09-29 23:28:38 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-09-29 23:28:38 -0400 |
commit | 43711d4b0111f97442db6f3ccd79574c21ece81a (patch) | |
tree | a80289d084e2ce34e1a8441bc97b082a47662a6c /lisp/vc/ediff-util.el | |
parent | 23855148a2706fe5adeac444abfc2d1e71d911f8 (diff) | |
download | emacs-43711d4b0111f97442db6f3ccd79574c21ece81a.tar.gz emacs-43711d4b0111f97442db6f3ccd79574c21ece81a.tar.bz2 emacs-43711d4b0111f97442db6f3ccd79574c21ece81a.zip |
* lisp/vc/ediff-util.el (ediff-diff-at-point): Don't assume point-min==1.
Diffstat (limited to 'lisp/vc/ediff-util.el')
-rw-r--r-- | lisp/vc/ediff-util.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index 78a2163f653..86293ade580 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el @@ -1907,8 +1907,8 @@ in the specified buffer." (cond ((eq which-diff 'after) (1+ diff-no)) ((eq which-diff 'before) diff-no) - ((< (abs (count-lines pos (max 1 prev-end))) - (abs (count-lines pos (max 1 beg)))) + ((< (abs (count-lines pos (max (point-min) prev-end))) + (abs (count-lines pos (max (point-min) beg)))) diff-no) ; choose prev difference (t (1+ diff-no))) ; choose next difference |