Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Fix #13 #10
Browse files Browse the repository at this point in the history
* nroam.el (with-nroam-markers): Add an extra \n char in read-write so that text
can be inserted at the end of the buffer.
  • Loading branch information
NicolasPetton committed Mar 13, 2021
1 parent e44ea27 commit 7ae549a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nroam.el
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Make the region inserted by BODY read-only, and marked with
,@body
(put-text-property beg (1+ beg) 'front-sticky '(read-only))
(put-text-property beg (point) 'read-only t)
;; Add a non-read-only newline so that text can be inserted at the end of
;; the buffer.
(let ((inhibit-read-only t))
(insert "\n"))
(set-marker nroam-end-marker (point))))

(defvar nroam-mode-map
Expand Down

0 comments on commit 7ae549a

Please sign in to comment.