Skip to content

Commit

Permalink
[status-] recentStatusMessages always return str #2064
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Oct 20, 2023
1 parent 147684e commit 04d09a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion visidata/statusbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def drawLeftStatus(vd, scr, vs):


@VisiData.property
def recentStatusMessages(vd):
def recentStatusMessages(vd) -> str:
r = ''
for (pri, msgparts), n in vd.statuses.items():
msg = '; '.join(wrmap(str, msgparts))
Expand All @@ -187,6 +187,8 @@ def recentStatusMessages(vd):
if r:
return '# statuses' + r

return ''


@VisiData.api
def rightStatus(vd, sheet):
Expand Down

0 comments on commit 04d09a2

Please sign in to comment.