about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-26 19:46:06 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-26 19:46:30 +0100
commit9c78cc3ce8b3345f95cb37a2a9d2101f52ecaa41 (patch)
tree335d76935ee1b52448946abc9d4553fd8b6c0bf8 /src/buffer
parent774aad55da0fc62f8de8c95dbbb3d2ad41010e3f (diff)
downloadchawan-9c78cc3ce8b3345f95cb37a2a9d2101f52ecaa41.tar.gz
Consistent naming of parseURL, non-public newURLParams
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/buffer.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim
index ad22df83..17b6e4b8 100644
--- a/src/buffer/buffer.nim
+++ b/src/buffer/buffer.nim
@@ -544,7 +544,7 @@ proc updateHover*(buffer: Buffer, cursorx, cursory: int): UpdateHoverResult {.pr
 
 proc loadResource(buffer: Buffer, document: Document, elem: HTMLLinkElement) =
   if elem.href == "": return
-  let url = parseUrl(elem.href, document.url.some)
+  let url = parseURL(elem.href, document.url.some)
   if url.isSome:
     let url = url.get
     if url.scheme == buffer.url.scheme:
@@ -912,8 +912,8 @@ proc readSuccess*(buffer: Buffer, s: string): ReadSuccessResult {.proxy.} =
         result.repaint = true
         result.open = buffer.implicitSubmit(input)
       of INPUT_FILE:
-        let cdir = parseUrl("file://" & getCurrentDir() & DirSep)
-        let path = parseUrl(s, cdir)
+        let cdir = parseURL("file://" & getCurrentDir() & DirSep)
+        let path = parseURL(s, cdir)
         if path.issome:
           input.file = path
           input.invalid = true
@@ -952,7 +952,7 @@ proc click*(buffer: Buffer, cursorx, cursory: int): ClickResult {.proxy.} =
       result.repaint = buffer.setFocus(clickable)
     of TAG_A:
       result.repaint = buffer.restoreFocus()
-      let url = parseUrl(HTMLAnchorElement(clickable).href, clickable.document.baseURL.some)
+      let url = parseURL(HTMLAnchorElement(clickable).href, clickable.document.baseURL.some)
       if url.issome:
         result.open = some(newRequest(url.get, HTTP_GET))
     of TAG_OPTION: