branch: externals/pulsar commit 890d73e481b2f87111ae0898d07ef1e497c5b898 Merge: 4cfc18a009 d2174307b0 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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)))