about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-08-06 18:35:39 +0200
committerbptato <nincsnevem662@gmail.com>2021-08-06 18:35:39 +0200
commitda1f249117ad2a6f02c1ac32208d6ece95508505 (patch)
treeb879b5bc256bc3cb3604fecfefd254c38ed62fc6 /src/main.nim
parentd4fe6539be7d2083260ba9deb012b2db59a121bd (diff)
downloadchawan-da1f249117ad2a6f02c1ac32208d6ece95508505.tar.gz
Refactoring in buffer.nim
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.nim b/src/main.nim
index 198eedb8..eaed73ed 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -5,7 +5,6 @@ import streams
 
 import utils/eprint
 
-import html/dom
 import html/htmlparser
 
 import io/buffer
@@ -52,7 +51,7 @@ proc main*() =
   buffer.renderPlainText(getPageUri(uri).readAll())
   var lastUri = uri
   while displayPage(attrs, buffer):
-    statusMsg("Loading...", buffer.height)
+    buffer.setStatusMessage("Loading...")
     var newUri = buffer.location
     lastUri.anchor = ""
     newUri.anchor = ""