From d3d9139dd6aa535ed1d7f2c78accd6ac5fa89b3e Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 15 Nov 2021 21:03:19 +0100 Subject: Abstract away FlexibleCell, fix pageUp/pageDown --- src/layout/engine.nim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/layout') diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 7b82cdf9..17cce41c 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -84,11 +84,9 @@ proc processInlineBox(parent: CSSBox, str: string): CSSBox = rowbox.setup(ibox.cssvalues, ibox.bcontext.nodes) var r: Rune while i < str.len: - fastRuneAt(str, i, r) - if rowbox.width + r.width() > ibox.width: - inlineWrap(ibox, rowi, fromx, rowbox) - if r != Rune(0x00A0) and #NBSP - r.isWhitespace(): + case str[i] + of ' ', '\n', '\t': + inc i let wsr = ibox.cssvalues[PROPERTY_WHITESPACE].whitespace if ibox.context.whitespace: if ibox.context.ws_initial: @@ -114,6 +112,10 @@ proc processInlineBox(parent: CSSBox, str: string): CSSBox = ibox.context.whitespace = false else: ibox.context.whitespace = false + fastRuneAt(str, i, r) + if rowbox.width + r.width() > ibox.width: + inlineWrap(ibox, rowi, fromx, rowbox) + rowbox.width += r.width() rowbox.runes.add(r) if rowbox.runes.len > 0: -- cgit 1.4.1-2-gfad0 .0b5'>log blame commit diff stats
path: root/doc/pydoc/ranger.colorschemes.html
blob: f6793175041be64918c7cf88dca7ddeab802153b (plain) (tree)
1
2
3
4
5
6
7
8
9
10