API: Implement buffer updates

Originally written by @phodge in
https://github.com/neovim/neovim/pull/5269.
This commit is contained in:
Peter Hodge
2018-01-26 20:36:11 +01:00
committed by KillTheMule
parent 418abfc9d0
commit edcc73e766
14 changed files with 371 additions and 49 deletions

View File

@@ -1234,7 +1234,8 @@ static void refresh_screen(Terminal *term, buf_T *buf)
int change_start = row_to_linenr(term, term->invalid_start);
int change_end = change_start + changed;
changed_lines(change_start, 0, change_end, added);
// Note: don't send LiveUpdate event for a :terminal buffer
changed_lines(change_start, 0, change_end, added, false);
term->invalid_start = INT_MAX;
term->invalid_end = -1;
}