about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index e5c0ddb3..9b03c999 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -707,6 +707,7 @@ proc addAtom(ictx: var InlineContext; state: var InlineState;
     iastate: InlineAtomState; atom: InlineAtom): bool =
   result = false
   var shift = ictx.computeShift(state)
+  ictx.currentLine.charwidth += ictx.whitespacenum
   ictx.whitespacenum = 0
   # Line wrapping
   if ictx.shouldWrap(atom.size.w + shift, state.computed):