From 58dfe2c7ae31406815fc29cdc0a00409b4155338 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 12 Feb 2022 12:40:46 +0100 Subject: Fix page reload bugs --- src/client.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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 -- cgit