diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-19 16:35:21 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-19 16:35:21 +0200 |
commit | 723613b0a02605dbf715d74c70b9ec29f1092c76 (patch) | |
tree | 45d2f6284fcff7f9481378267e05867def6d799f /src/layout | |
parent | 6078b9ca896007357b699f13aee7843f0c862b4a (diff) | |
download | chawan-723613b0a02605dbf715d74c70b9ec29f1092c76.tar.gz |
layout: fix inline tab expansion
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 1 |
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): |