branch: elpa/nix-mode
commit 542ae773584a40609e790992d8d543039f88bc5d
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
buffer-substring can't bet <1.
---
nix-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/nix-mode.el b/nix-mode.el
index abf8897c68..c163b9cb4b 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -111,6 +111,7 @@
(string-type (nix--get-string-type context)))
(unless (or (equal string-type ?\")
(and (equal string-type nil)
+ (< 1 start)
(string-match-p nix--variable-char
(buffer-substring (1- start) start))))
(when (equal string-type nil)