aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-07-09 17:56:30 +0200
committerGitHub <noreply@github.com>2019-07-09 17:56:30 +0200
commit7cf7c0a0b8e9ea41ccff8a9d8beb9186eb57d2e8 (patch)
tree4a320e5f2aa8c8ed367fab3f335647531bbdb5ff /src/nvim/ui.c
parent48a5897ec44562f460e6b99562e4f4cda642f93d (diff)
parent2c2f160a276f7853fdabccc505a57061c0da6669 (diff)
downloadrneovim-7cf7c0a0b8e9ea41ccff8a9d8beb9186eb57d2e8.tar.gz
rneovim-7cf7c0a0b8e9ea41ccff8a9d8beb9186eb57d2e8.tar.bz2
rneovim-7cf7c0a0b8e9ea41ccff8a9d8beb9186eb57d2e8.zip
Merge pull request #9575 from bfredl/redrawdebug
ui: implement better redrawdebug for the compositor
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 7bd45507a6..fc4a3a403d 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -341,15 +341,15 @@ void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol,
flags, (const schar_T *)grid->chars + off,
(const sattr_T *)grid->attrs + off);
- if (p_wd) { // 'writedelay': flush & delay each time.
- int old_row = cursor_row, old_col = cursor_col;
- handle_T old_grid = cursor_grid_handle;
+ // 'writedelay': flush & delay each time.
+ if (p_wd && !(rdb_flags & RDB_COMPOSITOR)) {
// If 'writedelay' is active, set the cursor to indicate what was drawn.
- ui_grid_cursor_goto(grid->handle, row, MIN(clearcol, (int)Columns-1));
- ui_flush();
+ ui_call_grid_cursor_goto(grid->handle, row,
+ MIN(clearcol, (int)grid->Columns-1));
+ ui_call_flush();
uint64_t wd = (uint64_t)labs(p_wd);
os_microdelay(wd * 1000u, true);
- ui_grid_cursor_goto(old_grid, old_row, old_col);
+ pending_cursor_update = true; // restore the cursor later
}
}