about summary refs log tree commit diff stats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-30 13:14:47 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-30 13:14:47 +0100
commit8bb35b0ea47eb91cc2703e27ca94c07b6a5cb9a3 (patch)
treeaad81ef4a75e56357cb66dfbea2e07c6fbd5a6a0 /src/render
parent58d374639ff9876eac36f17f12ab854ba931ca28 (diff)
downloadchawan-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.nim2
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: