diff options
author | bptato <nincsnevem662@gmail.com> | 2021-01-22 12:54:21 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-01-22 12:54:21 +0100 |
commit | 5d6af7f57a89239554a9cd51fe60f8227d7ce549 (patch) | |
tree | cc89b54443b227b4fc2140ee82ceee268d989f9f /main.nim | |
parent | 6e1ef74bdca4c629bda2756a6e72279e038195f4 (diff) | |
download | chawan-5d6af7f57a89239554a9cd51fe60f8227d7ce549.tar.gz |
failed attempt for unicode
Diffstat (limited to 'main.nim')
-rw-r--r-- | main.nim | 5 |
1 files changed, 2 insertions, 3 deletions
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 |