branch: externals/tomelr
commit 38160ef271493293166f81ce1a3d52b58a484a8e
Author: Kaushal Modi <kaushal.m...@gmail.com>
Commit: Kaushal Modi <kaushal.m...@gmail.com>

    fix: Stricter condition before starting TOML table array check
---
 tomelr.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tomelr.el b/tomelr.el
index 1e3a29baab..edbf7e6aa4 100644
--- a/tomelr.el
+++ b/tomelr.el
@@ -377,7 +377,8 @@ Definition of a TOML Table Array (TTA):
 
 - OBJECT is TTA if it is of type ((TT1) (TT2) ..) where each element is a
   TOML Table (TT)."
-  (when (mapp object)
+  (when (and (not (stringp object))
+             (mapp object)) ;Because `mapp' is non-nil for strings too
     (seq-every-p
      (lambda (elem)
        (tomelr--toml-table-p elem))

Reply via email to