Skip to content

Commit

Permalink
FIX: improved resolving console width for help output trunctation
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 10, 2021
1 parent 43886c4 commit ef13db7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mezz/mezz-help.reb
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit ef13db7

Please sign in to comment.