branch: externals/pulsar commit d2174307b0c6e21b75055be5ea1b0c43a7874d71 Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@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)))