repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
ea2a492
parent
4bad293
author
Eric Bower
date
2022-08-12 15:18:31 +0000 UTC
fix(lists): fix nil pointer reference in parser
1 files changed,  +1, -1
M lists/parser.go
+1, -1
1@@ -155,7 +155,7 @@ func parseItem(meta *MetaData, li *ListItem, prevItem *ListItem, pre bool, mod i
2 		li.Value = trim
3 
4 		pre, skip, _ = parseItem(meta, li, prevItem, pre, mod)
5-		if prevItem.Indent == 0 {
6+		if prevItem != nil && prevItem.Indent == 0 {
7 			mod = old - len(trim)
8 			li.Indent = 1
9 		} else {