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

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

[elpa] externals/yaml 7ef2e8ce5b 100/124: fix unit tests


From: ELPA Syncer
Subject: [elpa] externals/yaml 7ef2e8ce5b 100/124: fix unit tests
Date: Fri, 29 Nov 2024 16:00:08 -0500 (EST)

branch: externals/yaml
commit 7ef2e8ce5b92ac5f341ceb503ab3f688c64a425b
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>

    fix unit tests
---
 yaml.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml.el b/yaml.el
index 169cf8f4b4..a715d3d4d8 100644
--- a/yaml.el
+++ b/yaml.el
@@ -267,7 +267,7 @@ This flag is intended for development purposes.")
            (parsed-header (yaml--parse-block-header header-line))
            (chomp (car parsed-header))
            (starting-spaces-ct
-            (or (and (cadr parsed-header) (+ n (cadr parsed-header)))
+            (or (and (cadr parsed-header) (+ (or n 0) (cadr parsed-header)))
                 (let ((_ (string-match "^\n*\\( *\\)" text-body)))
                   (length (match-string 1 text-body)))))
            (lines (split-string text-body "\n"))



reply via email to

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