Mercurial > vim
diff src/proto/terminal.pro @ 13851:3edac4cd1c0a v8.0.1797
patch 8.0.1797: terminal window is redrawn too often
commit https://github.com/vim/vim/commit/6eddadff13164b98fe8198153cc656897b2cbcb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 6 16:40:16 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 May 2018 16:45:05 +0200 |
parents | 39fcaaa973db |
children | a590029f16a0 |
line wrap: on
line diff
--- 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); +int term_use_loop(void); void term_win_entered(void); -int term_use_loop(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);