浏览代码

Merge branch 'bugfix'

Bastien 3 年之前
父节点
当前提交
3d35718bad
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ol-bibtex.el

+ 2 - 1
lisp/ol-bibtex.el

@@ -677,7 +677,8 @@ This uses `bibtex-parse-entry'."
                        (_ field)))
                    (funcall clean-space (funcall strip-delim (cdr pair)))))
            (save-excursion (bibtex-beginning-of-entry) (bibtex-parse-entry)))
-          org-bibtex-entries)))
+          org-bibtex-entries)
+    (unless (car org-bibtex-entries) (pop org-bibtex-entries))))
 
 (defun org-bibtex-read-buffer (buffer)
   "Read all bibtex entries in BUFFER and save to `org-bibtex-entries'.