diff options
| -rw-r--r-- | vterm-module.c | 10 | ||||
| -rw-r--r-- | vterm-module.h | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/vterm-module.c b/vterm-module.c index 2ff2771..201c9b2 100644 --- a/vterm-module.c +++ b/vterm-module.c @@ -591,16 +591,6 @@ static void term_process_key(Term *term, unsigned char *key, size_t len, } } -static void term_put_caret(Term *term, emacs_env *env, int row, int col, - int offset) { - int rows, cols; - vterm_get_size(term->vt, &rows, &cols); - // row * (cols + 1) because of newline character - // col + 1 because (goto-char 1) sets point to first position - int point = ((row + term->sb_current) * (cols + 1)) + col + 1 + offset; - goto_char(env, point); -} - void term_finalize(void *object) { Term *term = (Term *)object; for (int i = 0; i < term->sb_current; i++) { diff --git a/vterm-module.h b/vterm-module.h index c421310..7f599b4 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -76,8 +76,6 @@ static void term_redraw(Term *term, emacs_env *env); static void term_flush_output(Term *term, emacs_env *env); static void term_process_key(Term *term, unsigned char *key, size_t len, VTermModifier modifier); -static void term_put_caret(Term *term, emacs_env *env, int row, int col, - int offset); static void invalidate_terminal(Term *term, int start_row, int end_row); static void refresh_size(Term *term); void term_finalize(void *object); |
