branch: externals/org-remark
commit 1426ccf3b04004b9eccffe64f7d09a161fe913a6
Author: Noboru Ota <[email protected]>
Commit: Noboru Ota <[email protected]>

    fix: case for highlight-get-text empty notes at the bottom of buffer
---
 org-remark.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-remark.el b/org-remark.el
index 6df24f7ffa..6680b4836b 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -749,7 +749,8 @@ non-nil.  Returns nil otherwise, or when no Org-ID is 
found."
            (if
                ;; handle empty annotation
                ;; (org-end-of-meta-data :full) took us to next org heading):
-               (looking-at org-heading-regexp)
+               (or (looking-at org-heading-regexp)
+                   (eobp)) ;; end of buffer
                "[empty entry]"
              (buffer-substring-no-properties
               (point)

Reply via email to