about summary refs log tree commit diff stats
path: root/src/local/container.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-10 17:28:20 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-10 17:28:20 +0200
commit55e98ed332ac9b10fdd22d24f39413fc4e916ac4 (patch)
tree089fb35c11bfee24064e3309eb51e6aba573589a /src/local/container.nim
parent5034921d6a02c2f38f0d2387261709468f726c78 (diff)
downloadchawan-55e98ed332ac9b10fdd22d24f39413fc4e916ac4.tar.gz
pager: fix rewrite-url weirdness
saveSource's URL overriding mechanism conflicted with rewrite-url,
since the latter wouldn't change the overriding URL (which was not
optional either).

Remove the former since a) it's just cosmetic and b) not really visible
to the user at all.
Diffstat (limited to 'src/local/container.nim')
-rw-r--r--src/local/container.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index cb7738b8..7e1326a6 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -60,7 +60,6 @@ type
       tvalue*: string
     of cetOpen:
       request*: Request
-      url*: URL
       save*: bool
     of cetAnchor, cetNoAnchor:
       anchor*: string
@@ -1893,8 +1892,7 @@ proc saveSource*(container: Container) {.jsfunc.} =
   container.triggerEvent(ContainerEvent(
     t: cetOpen,
     request: newRequest(newURL("cache:" & $container.cacheId).get),
-    save: true,
-    url: container.url
+    save: true
   ))
 
 proc windowChange*(container: Container; attrs: WindowAttributes) =