about summary refs log tree commit diff stats
path: root/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-01-22 12:54:21 +0100
committerbptato <nincsnevem662@gmail.com>2021-01-22 12:54:21 +0100
commit5d6af7f57a89239554a9cd51fe60f8227d7ce549 (patch)
treecc89b54443b227b4fc2140ee82ceee268d989f9f /main.nim
parent6e1ef74bdca4c629bda2756a6e72279e038195f4 (diff)
downloadchawan-5d6af7f57a89239554a9cd51fe60f8227d7ce549.tar.gz
failed attempt for unicode
Diffstat (limited to 'main.nim')
-rw-r--r--main.nim5
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