diff options
| author | jixiuf <jixiuf@qq.com> | 2020-03-21 13:42:47 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2020-03-27 22:47:55 +0800 |
| commit | 996c535b9cc6aa70c3595413582d97abfab16edd (patch) | |
| tree | b73c0d944401cba5efb908eb1de1c4a6c2f1bf2f /vterm-module.h | |
| parent | 7a247906c17f97f6edad6c478da0c34307db2b80 (diff) | |
reimplements vterm--get-prompt-point with text property and bind vterm-previous-prompt and vterm-next-prompt.
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vterm-module.h b/vterm-module.h index 752d744..068fb8f 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -90,7 +90,8 @@ static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b); static bool is_key(unsigned char *key, size_t len, char *key_description); static emacs_value render_text(emacs_env *env, Term *term, char *string, int len, VTermScreenCell *cell); -static emacs_value render_fake_newline(emacs_env *env, Term *term); +static emacs_value render_fake_newline(emacs_env *env, Term *term); +static emacs_value render_prompt(emacs_env *env, emacs_value text); static emacs_value color_to_rgb_string(emacs_env *env, Term *term, VTermColor *color); |
