branch: externals/yaml
commit 7ef2e8ce5b92ac5f341ceb503ab3f688c64a425b
Author: Zachary Romero <zacrom...@posteo.net>
Commit: Zachary Romero <zacrom...@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