summaryrefslogtreecommitdiff
path: root/tui.c
diff options
context:
space:
mode:
Diffstat (limited to 'tui.c')
-rw-r--r--tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tui.c b/tui.c
index 75c6e08..af10a2f 100644
--- a/tui.c
+++ b/tui.c
@@ -73,7 +73,7 @@ void tui_print() {
printf("\n");
/* Traverse the list of all connections */
- while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && l < options.num_lines) {
+ while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && (!options.num_lines || l < options.num_lines)) {
/* Increment the line counter */
l++;