about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-03 01:17:03 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-03 01:31:07 +0100
commit7728bad57be566bd86327dc843f8b950d538a2f0 (patch)
treef60c5dfa2eacf5db556d9f15c218ae438a42b19f /src/bindings
parentb91b64a2d54404c4ead09093c25e0002fbab1881 (diff)
downloadchawan-7728bad57be566bd86327dc843f8b950d538a2f0.tar.gz
pager, container: add text selection/copying
* Add select & copy selection functionality to container
* Fix bug in generateSwapOutput where output could be misplaced
  because of zero-width cells
* Add fromJSPromise, call runJSJobs in every iteration of the
  headed event loop
* "await" pager actions that output a promise
* Change default view source keybinding to `\'
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/quickjs.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim
index d573a1dd..c7c9554f 100644
--- a/src/bindings/quickjs.nim
+++ b/src/bindings/quickjs.nim
@@ -423,6 +423,8 @@ proc JS_Call*(ctx: JSContext, func_obj, this_obj: JSValue, argc: cint,
   argv: ptr JSValue): JSValue
 proc JS_NewObjectFromCtor*(ctx: JSContext, ctor: JSValue,
   class_id: JSClassID): JSValue
+proc JS_Invoke*(ctx: JSContext, this_obj: JSValue, atom: JSAtom, argc: cint,
+  argv: ptr JSValue): JSValue
 proc JS_CallConstructor*(ctx: JSContext, func_obj: JSValue, argc: cint,
   argv: ptr JSValue): JSValue