From 5d6af7f57a89239554a9cd51fe60f8227d7ce549 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 22 Jan 2021 12:54:21 +0100 Subject: failed attempt for unicode --- main.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.nim') diff --git a/main.nim b/main.nim index b0212511..c98f0db5 100644 --- a/main.nim +++ b/main.nim @@ -35,7 +35,6 @@ proc main*() = quit(1) if not readKeymap("keymap"): eprint "Failed to read keymap, falling back to default" - parseKeymap(keymapStr) let attrs = getTermAttributes() let buffer = newBuffer(attrs) let uri = parseUri(paramStr(1)) @@ -46,12 +45,12 @@ proc main*() = var lastUri = uri while displayPage(attrs, buffer): statusMsg("Loading...", buffer.height) - var newUri = buffer.location + var newUri = buffer.document.location lastUri.anchor = "" newUri.anchor = "" if $lastUri != $newUri: buffer.clearBuffer() - buffer.htmlSource = loadPageUri(buffer.location, buffer.htmlSource) + buffer.htmlSource = loadPageUri(buffer.document.location, buffer.htmlSource) buffer.renderHtml() lastUri = newUri -- cgit 1.4.1-2-gfad0