From 424f52e1f2eff84ee23a79b38e7932c2918351ed Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 6 Feb 2021 20:09:53 +0100 Subject: removing old readline --- display.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'display.nim') diff --git a/display.nim b/display.nim index c7cd4bb4..4bf15921 100644 --- a/display.nim +++ b/display.nim @@ -158,8 +158,7 @@ proc postAlignNode(buffer: Buffer, node: HtmlNode, state: var RenderState) = if state.rawline.len > 0 and state.blanklines == 0: state.nextspaces += max(elem.margin, elem.marginright) - if node.closeblock and (node.isTextNode() or elem.numChildNodes == 0): - state.write($node.nodeAttr().tagType) + if node.closeblock and (node.isTextNode() or elem.childNodes.len == 0): buffer.flushLine(state) if node.closeblock: @@ -355,7 +354,7 @@ proc inputLoop(attrs: TermAttributes, buffer: Buffer): bool = case selectedElem.get().tagType of TAG_INPUT: clearStatusMsg(buffer.height) - let status = readLine("TEXT:", HtmlInputElement(selectedElem.get()).value) + let status = readLine("TEXT: ", HtmlInputElement(selectedElem.get()).value, buffer.width) if status: reshape = true redraw = true @@ -368,7 +367,7 @@ proc inputLoop(attrs: TermAttributes, buffer: Buffer): bool = var url = $buffer.document.location clearStatusMsg(buffer.height) - let status = readLine("URL:", url) + let status = readLine("URL: ", url, buffer.width) if status: buffer.setLocation(parseUri(url)) return true -- cgit 1.4.1-2-gfad0