Skip to content

Commit c22592e

Browse files
committed
Fix doom-snippets-bolp at bol
1 parent 393cbcd commit c22592e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doom-snippets-lib.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Unlike `bolp', this ignores the trigger word for the current snippet."
8484
(save-excursion
8585
(if (region-active-p)
8686
(goto-char (region-beginning))
87-
(unless (eq (char-before) ? )
87+
(unless (memq (char-before) (list ?\ ?\n))
8888
(backward-word)))
8989
(skip-chars-backward " \t")
9090
(bolp))))

0 commit comments

Comments
 (0)