summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--nroam.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/nroam.el b/nroam.el
index 54a1a30..e32559a 100644
--- a/nroam.el
+++ b/nroam.el
@@ -189,7 +189,8 @@ Make the region inserted by BODY read-only, and marked with
(with-buffer-modified-unmodified
(save-excursion
(goto-char p)
- (nroam--ensure-empty-line)
+ (unless (bobp)
+ (nroam--ensure-empty-line))
(with-nroam-markers
(nroam--do-separated-by-newlines #'funcall nroam-sections))
(when (nroam--sections-inserted-p)