diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-02-09 21:41:58 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-02-09 21:41:58 -0800 |
commit | 9a91f0a84065e3b53d897a7f232ac58d36e3bb0a (patch) | |
tree | e6824d8ad1087a032113fdadfddb1480597aa387 /baremetal/shell/gap-buffer.mu | |
parent | c1e841fc2dc43cd94e993165ff0fbde12fd0ec15 (diff) | |
download | mu-9a91f0a84065e3b53d897a7f232ac58d36e3bb0a.tar.gz |
7702
Diffstat (limited to 'baremetal/shell/gap-buffer.mu')
-rw-r--r-- | baremetal/shell/gap-buffer.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baremetal/shell/gap-buffer.mu b/baremetal/shell/gap-buffer.mu index b0f9fb04..eb103c98 100644 --- a/baremetal/shell/gap-buffer.mu +++ b/baremetal/shell/gap-buffer.mu @@ -78,9 +78,9 @@ fn emit-stack-from-top _self: (addr grapheme-stack), out: (addr stream byte) { fn render-gap-buffer screen: (addr screen), _gap: (addr gap-buffer), x: int, y: int, render-cursor?: boolean -> _/eax: int { var gap/esi: (addr gap-buffer) <- copy _gap var left/eax: (addr grapheme-stack) <- get gap, left - var x2/eax: int <- render-stack-from-bottom left, screen, x, y + var x2/eax: int <- render-stack-from-bottom screen, left, x, y var right/ecx: (addr grapheme-stack) <- get gap, right - x2 <- render-stack-from-top right, screen, x2, y, render-cursor? + x2 <- render-stack-from-top screen, right, x2, y, render-cursor? var x3/ebx: int <- copy x2 # if we must render cursor and the right side is empty, print a grapheme anyway { |