emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 0624820fd3 067/500: Fix org-mode fontification er


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 0624820fd3 067/500: Fix org-mode fontification error.
Date: Sat, 29 Jan 2022 08:26:36 -0500 (EST)

branch: elpa/nix-mode
commit 0624820fd32915539a17bf012cb7f1a789268a5b
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Fix org-mode fontification error.
    
    This seems to fix the issue found in NixOS/nix#1040. It still needs
    confirmation from @rzetterberg.
---
 nix-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nix-mode.el b/nix-mode.el
index 67a211aec0..99e0f9f0de 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -27,7 +27,7 @@
   "Find antiquote within a Nix expression up to LIMIT."
   (let ((pos (next-single-char-property-change (point) 'nix-syntax-antiquote
                                                nil limit)))
-    (when (and pos (> pos (point)))
+    (when (and pos (> pos (point)) (< pos (point-max)))
       (goto-char pos)
       (let ((char (char-after pos)))
         (pcase char



reply via email to

[Prev in Thread] Current Thread [Next in Thread]