Skip to content

Commit 43886c4

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mezz/mezz-help.reb

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ import module [
181181
string [string!] "Returned series will be past the insertion"
182182
/local value spec args refs rets type ret desc arg def des ref str cols
183183
][
184-
cols: 120
185-
try/except [ cols: query/mode system/ports/input 'buffer-cols ][ print system/state/last-error ]
184+
;@@ quering buffer width in CI under Windows now throws error: `Access error: protocol error: 6`
185+
;@@ it should return `none` like under Posix systems!
186+
cols: any [try [ query/mode system/ports/input 'buffer-cols ] 120 ]
186187
max-desc-width: cols - 35
187188
buffer: any [string clear ""]
188189
catch [

0 commit comments

Comments
 (0)