branch: elpa/nix-mode
commit 3338f5997eb3616bfaaa37bf70ae35d24003c96b
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Fix beginning of buffer issue
---
nix-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix-mode.el b/nix-mode.el
index 595a82bdb5..9255b5db9d 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -158,7 +158,7 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
(setq p1 (point))
(setq p2 (nth 1 (syntax-ppss)))
- (while p2
+ (while (and p2 (not (eq p2 1)))
(goto-char p2)
(backward-char)
(let ((l1 (line-number-at-pos p1))