fix "mark list" with an empty list

This commit is contained in:
tjp 2024-01-10 11:05:45 -07:00
parent 99a0553452
commit fd7d73df41
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ func MarkList(state *BrowserState) error {
}
}
state.Modal = buf.Bytes()
if len(state.Modal) == 0 {
state.Modal = []byte("(empty)\n")
}
return Print(state)
}