From ef13db708605d3c192d2bf6ac9c85340772d8ac1 Mon Sep 17 00:00:00 2001 From: Oldes Date: Wed, 10 Nov 2021 15:22:33 +0100 Subject: [PATCH] FIX: improved resolving console width for help output trunctation --- src/mezz/mezz-help.reb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mezz/mezz-help.reb b/src/mezz/mezz-help.reb index 7b11caca87..e9fb4d0586 100644 --- a/src/mezz/mezz-help.reb +++ b/src/mezz/mezz-help.reb @@ -183,7 +183,8 @@ import module [ ][ ;@@ quering buffer width in CI under Windows now throws error: `Access error: protocol error: 6` ;@@ it should return `none` like under Posix systems! - cols: any [try [ query/mode system/ports/input 'buffer-cols ] 120 ] + cols: try [ query/mode system/ports/input 'buffer-cols ] + unless integer? cols [ cols: 120 ] max-desc-width: cols - 35 buffer: any [string clear ""] catch [