diff options
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/client.nim | 4 | ||||
-rw-r--r-- | src/local/pager.nim | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index d8608503..d9971d70 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -683,6 +683,7 @@ proc newClient*(config: Config, forkserver: ForkServer, mainproc: Pid): Client = JS_SetModuleLoaderFunc(jsrt, normalizeModuleName, clientLoadJSModule, nil) let jsctx = jsrt.newJSContext() let attrs = getWindowAttributes(stdout) + let pager = newPager(config, attrs, forkserver, mainproc, jsctx) let client = Client( config: config, forkserver: forkserver, @@ -691,12 +692,13 @@ proc newClient*(config: Config, forkserver: ForkServer, mainproc: Pid): Client = defaultHeaders = config.getDefaultHeaders(), proxy = config.getProxy(), urimethodmap = config.getURIMethodMap(), + cgiDir = pager.cgiDir, acceptProxy = true, w3mCGICompat = config.external.w3m_cgi_compat ), jsrt: jsrt, jsctx: jsctx, - pager: newPager(config, attrs, forkserver, mainproc, jsctx) + pager: pager ) jsrt.setInterruptHandler(interruptHandler, cast[pointer](client)) var global = JS_GetGlobalObject(jsctx) diff --git a/src/local/pager.nim b/src/local/pager.nim index b1146fcf..c69d3a28 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -55,7 +55,7 @@ type askcursor: int askpromise*: Promise[bool] askprompt: string - cgiDir: seq[string] + cgiDir*: seq[string] commandMode {.jsget.}: bool config: Config container*: Container |