shell: fix clear on screens

Broken since commit c95648c96 on Jul 3.

Unclear what test to write for this. Should clear-stream check for NULL?
Should apply-clear?
This commit is contained in:
Kartik K. Agaram 2021-07-05 22:06:37 -07:00
parent 5d614af955
commit 468b0d979f
1 changed files with 1 additions and 1 deletions

View File

@ -1646,7 +1646,7 @@ fn apply-clear _args-ah: (addr handle cell), out: (addr handle cell), trace: (ad
var first-type/ecx: (addr int) <- get first, type
compare *first-type, 3/stream
{
break-if-=
break-if-!=
var stream-data-ah/eax: (addr handle stream byte) <- get first, text-data
var _stream-data/eax: (addr stream byte) <- lookup *stream-data-ah
var stream-data/ebx: (addr stream byte) <- copy _stream-data