summaryrefslogtreecommitdiffstatshomepage
path: root/nroam.el
diff options
context:
space:
mode:
authorGravatar Nicolas Petton2021-02-25 12:41:38 +0100
committerGravatar Nicolas Petton2021-02-25 12:41:38 +0100
commit580aa038224ad34892d2251fe60aa465535e015d (patch)
treef82ffdb7470e118ab0fb570176b420cd768b8a46 /nroam.el
parent645c380b27b18362f3ea6871699acd060610434b (diff)
downloadnroam-580aa038224ad34892d2251fe60aa465535e015d.tar.gz
nroam-580aa038224ad34892d2251fe60aa465535e015d.zip
* nroam.el (nroam--ensure-empty-line): Do dot move to point-max.
Diffstat (limited to 'nroam.el')
-rw-r--r--nroam.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/nroam.el b/nroam.el
index 0f1d7c2..db72814 100644
--- a/nroam.el
+++ b/nroam.el
@@ -294,9 +294,8 @@ Temporary fix until `org-roam' v2 is out."
(if (> n 1) "s" "")))
(defun nroam--ensure-empty-line ()
- "Insert a newline character if the buffer does not end with a newline."
+ "Insert a newline character if the buffer does contain one before point."
(let ((inhibit-read-only t))
- (goto-char (point-max))
(unless (eq ?\n (char-before (1- (point)))) (insert "\n"))))
(defun nroam--do-separated-by-newlines (function sequence)