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

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

[elpa] externals/pulsar 890d73e481 24/28: Merge branch 'fix-last-line' i


From: ELPA Syncer
Subject: [elpa] externals/pulsar 890d73e481 24/28: Merge branch 'fix-last-line' into 'main'
Date: Tue, 22 Mar 2022 06:58:06 -0400 (EDT)

branch: externals/pulsar
commit 890d73e481b2f87111ae0898d07ef1e497c5b898
Merge: 4cfc18a009 d2174307b0
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Merge branch 'fix-last-line' into 'main'
    
    Simple fix for highlight behavior on last line
    
    Closes #2
    
    See merge request protesilaos/pulsar!1
---
 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]