diff options
Diffstat (limited to 'vterm-module.c')
| -rw-r--r-- | vterm-module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vterm-module.c b/vterm-module.c index ae3d330..802fa12 100644 --- a/vterm-module.c +++ b/vterm-module.c @@ -235,7 +235,7 @@ static int is_end_of_prompt(Term *term, int end_col, int row, int col) { static size_t get_col_offset(Term *term, int row, int end_col) { int col = 0; size_t offset = 0; - unsigned char buf[4]; + int height; int width; vterm_get_size(term->vt, &height, &width); @@ -469,8 +469,6 @@ static void adjust_topline(Term *term, emacs_env *env) { size_t offset = get_col_offset(term, pos.row, pos.col); forward_char(env, env->make_integer(env, pos.col - offset)); - bool following = term->height == 1 + pos.row; - emacs_value windows = get_buffer_window_list(env); emacs_value swindow = selected_window(env); int winnum = env->extract_integer(env, length(env, windows)); |
