aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.nim6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client.nim b/src/client.nim
index dcb42c5c..3ee26609 100644
--- a/src/client.nim
+++ b/src/client.nim
@@ -150,11 +150,7 @@ proc loadUrl(client: Client, url: string, ctype = "") =
client.gotoUrl("http://" & url, none(ClickAction), none(Url), true, true, ctype)
proc reloadPage(client: Client) =
- let pbuffer = client.buffer
- client.gotoUrl(pbuffer.location, none(ClickAction), none(Url), true, false)
- client.buffer.setCursorXY(pbuffer.cursorx, pbuffer.cursory)
- client.buffer.setFromXY(pbuffer.fromx, pbuffer.fromy)
- client.buffer.contenttype = pbuffer.contenttype
+ client.gotoUrl(client.buffer.location, none(ClickAction), none(Url), true, false, client.buffer.contenttype)
proc changeLocation(client: Client) =
let buffer = client.buffer