diff options
| author | bptato <nincsnevem662@gmail.com> | 2022-02-12 12:40:46 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2022-02-12 12:40:46 +0100 |
| commit | 58dfe2c7ae31406815fc29cdc0a00409b4155338 (patch) | |
| tree | 7cb4daf63732ec5d19e99cadafb040570c28fbd1 /src | |
| parent | 2edbb7b07d1b82e18e1dbe5eb58a3fcce659f783 (diff) | |
| download | chawan-58dfe2c7ae31406815fc29cdc0a00409b4155338.tar.gz | |
Fix page reload bugs
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.nim | 6 |
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 |