diff options
| author | jixiuf <jixiuf@qq.com> | 2022-08-27 21:45:40 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2022-08-27 21:54:43 +0800 |
| commit | 7feb9c3351436fe3c64d59c4b730780c9cca02d5 (patch) | |
| tree | b2278032f43855c85f29090c484987159fcc777f /elisp.c | |
| parent | 679b43f292db1bdc6630ec8d62d46201408dce66 (diff) | |
reimplement OSC 52 with VTermSelectionCallbacks from libvterm v0.2
Diffstat (limited to 'elisp.c')
| -rw-r--r-- | elisp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -55,7 +55,7 @@ emacs_value Fvterm_invalidate; emacs_value Feq; emacs_value Fvterm_get_color; emacs_value Fvterm_eval; -emacs_value Fvterm_selection; +emacs_value Fvterm_set_selection; /* Set the function cell of the symbol named NAME to SFUN using the 'fset' function. */ @@ -202,8 +202,8 @@ emacs_value vterm_eval(emacs_env *env, emacs_value string) { return env->funcall(env, Fvterm_eval, 1, (emacs_value[]){string}); } -emacs_value vterm_selection(emacs_env *env, emacs_value selection_target, - emacs_value selection_data) { - return env->funcall(env, Fvterm_selection, 2, +emacs_value vterm_set_selection(emacs_env *env, emacs_value selection_target, + emacs_value selection_data) { + return env->funcall(env, Fvterm_set_selection, 2, (emacs_value[]){selection_target, selection_data}); } |
