diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-30 13:14:47 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-30 13:14:47 +0100 |
commit | 8bb35b0ea47eb91cc2703e27ca94c07b6a5cb9a3 (patch) | |
tree | aad81ef4a75e56357cb66dfbea2e07c6fbd5a6a0 /src/render | |
parent | 58d374639ff9876eac36f17f12ab854ba931ca28 (diff) | |
download | chawan-8bb35b0ea47eb91cc2703e27ca94c07b6a5cb9a3.tar.gz |
Do not center error-corrected lines
It sounds like a good idea, but in fact looks terrible in lists.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/renderdocument.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index f1b131ae..0315f6b7 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -263,7 +263,7 @@ proc renderInlineContext(grid: var FlexibleGrid, ctx: InlineContext, x, y: int, for line in ctx.lines: let x = x + line.offset.x let y0 = y + line.offset.y - let y = y0 - erry * i + erry * ctx.lines.len div 2 + let y = y0 - erry * i let r = y div window.ppl while grid.len <= r: |