From 6eddadff13164b98fe8198153cc656897b2cbcb3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 6 May 2018 16:40:16 +0200 Subject: patch 8.0.1797: terminal window is redrawn too often Problem: Terminal window is redrawn too often and scrolling is repeated. Solution: Don't scroll immediately but only when redrawing. Avoid redrawing the whole terminal window on every change. --- src/proto/terminal.pro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/proto/terminal.pro') diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro index 78b640f7a5..f97f025d58 100644 --- a/src/proto/terminal.pro +++ b/src/proto/terminal.pro @@ -14,12 +14,13 @@ void term_enter_job_mode(void); int send_keys_to_term(term_T *term, int c, int typed); int terminal_is_active(void); cursorentry_T *term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg); -void term_win_entered(void); int term_use_loop(void); +void term_win_entered(void); int terminal_loop(int blocking); void term_job_ended(job_T *job); void term_channel_closed(channel_T *ch); -int term_update_window(win_T *wp); +int term_do_update_window(win_T *wp); +void term_update_window(win_T *wp); int term_is_finished(buf_T *buf); int term_show_buffer(buf_T *buf); void term_change_in_curbuf(void); -- cgit v1.2.3