Skip to content

Commit ef13db7

Browse files
committed
FIX: improved resolving console width for help output trunctation
1 parent 43886c4 commit ef13db7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mezz/mezz-help.reb

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ import module [
183183
][
184184
;@@ quering buffer width in CI under Windows now throws error: `Access error: protocol error: 6`
185185
;@@ it should return `none` like under Posix systems!
186-
cols: any [try [ query/mode system/ports/input 'buffer-cols ] 120 ]
186+
cols: try [ query/mode system/ports/input 'buffer-cols ]
187+
unless integer? cols [ cols: 120 ]
187188
max-desc-width: cols - 35
188189
buffer: any [string clear ""]
189190
catch [

0 commit comments

Comments
 (0)