renderer: do not render if synchronized output is on

This commit is contained in:
Mitchell Hashimoto
2023-08-28 11:38:11 -07:00
parent 2cc1e43716
commit 5168dc7645
3 changed files with 13 additions and 1 deletions

View File

@@ -709,6 +709,12 @@ pub fn render(
state.mutex.lock();
defer state.mutex.unlock();
// If we're in a synchronized output state, we pause all rendering.
if (state.terminal.modes.get(.synchronized_output)) {
log.debug("synchronized output started, skipping render", .{});
return;
}
self.cursor_visible = visible: {
// If the cursor is explicitly not visible in the state,
// then it is not visible.