Browse Source

* nroam.el (nroam--ensure-empty-line): Do dot move to point-max.

master
Nicolas Petton 1 month ago
parent
commit
580aa03822
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      nroam.el

+ 1
- 2
nroam.el View File

@ -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)


Loading…
Cancel
Save