Skip to content

Avoid "showing 0 lines" messages when we're asked to show no lines

Tristan Maat requested to merge tlater/message-lines into master

Description

This adds some checks asserting that the user didn't ask us to display nothing before we try and tell them that we're displaying nothing, as requested in #779 (closed). Of course we still show the message if they didn't specify that, since no output is still important information.

This merge request, when approved, will close: #779 (closed)


I've left the branch without tests for now; interactive/frontend stuff isn't generally tested, and we've been holding off on it in case we want to change text. Arguably this is a bugfix, so maybe this should be different. Expecting feedback on whether to test or not :)

Edited by Tristan Maat

Merge request reports