diff options
-rw-r--r-- | lisp/textmodes/bibtex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 8a018520f5f..10edefc9d3e 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -2229,7 +2229,7 @@ Optional arg COMMA is as in `bibtex-enclosing-field'." bibtex-entry-kill-ring)) ;; If we copied an entry from a buffer containing only this one entry, ;; it can be missing the second "\n". - (unless (looking-back "\n\n" (- (point 2))) (insert "\n")) + (unless (looking-back "\n\n" (- (point) 2)) (insert "\n")) (unless (functionp bibtex-reference-keys) ;; update `bibtex-reference-keys' (save-excursion |