Skip to content

Commit 6bcf212

Browse files
authored
Merge pull request #57 from yoshimoto/master
Fix issue #51
2 parents 9bc2d19 + 4e1af28 commit 6bcf212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdown-toc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Default to identity function (do nothing)."
150150
(when menu-index
151151
(let* ((fst (car menu-index))
152152
(tail (cdr menu-index))
153-
(ttail (if (integerp tail) nil (cdr tail))))
153+
(ttail (cdr-safe tail)))
154154
(cons `(,level . ,fst)
155155
(--mapcat
156156
(markdown-toc--compute-toc-structure-from-level (+ 1 level) it)

0 commit comments

Comments
 (0)