emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pulsar d2174307b0 23/28: Simple fix for highlight behav


From: ELPA Syncer
Subject: [elpa] externals/pulsar d2174307b0 23/28: Simple fix for highlight behavior on last line
Date: Tue, 22 Mar 2022 06:58:05 -0400 (EDT)

branch: externals/pulsar
commit d2174307b0c6e21b75055be5ea1b0c43a7874d71
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    Simple fix for highlight behavior on last line
---
 pulsar.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar.el b/pulsar.el
index b3433e3846..a08bb701bc 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -231,13 +231,13 @@ Only applies when `pulsar-pulse' is non-nil."
 
 (defun pulsar--start ()
   "Return appropriate line start."
-  (if (pulsar--buffer-end-p)
+  (if (and (pulsar--buffer-end-p) (eq (char-before) ?\n))
       (line-beginning-position 0)
     (line-beginning-position)))
 
 (defun pulsar--end ()
   "Return appropriate line end."
-  (if (pulsar--buffer-end-p)
+  (if (and (pulsar--buffer-end-p) (eq (char-before) ?\n))
       (line-beginning-position 1)
     (line-beginning-position 2)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]