diff options
author | Nicolas Petton | 2021-02-25 12:41:38 +0100 |
---|---|---|
committer | Nicolas Petton | 2021-02-25 12:41:38 +0100 |
commit | 580aa038224ad34892d2251fe60aa465535e015d (patch) | |
tree | f82ffdb7470e118ab0fb570176b420cd768b8a46 | |
parent | 645c380b27b18362f3ea6871699acd060610434b (diff) | |
download | nroam-580aa038224ad34892d2251fe60aa465535e015d.tar.gz nroam-580aa038224ad34892d2251fe60aa465535e015d.zip |
* nroam.el (nroam--ensure-empty-line): Do dot move to point-max.
-rw-r--r-- | nroam.el | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |