From dffbd572823930bc7a5769aaef0c5232029bab7d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 2 Feb 2018 10:12:32 +0000
Subject: [PATCH] Don't redraw the cursor when hold_update is true.

Fixes an issue where the blinking cursor would corrupt the Sixel data.
---
 src/conio/bitmap_con.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index 2fb244ccef..db8800ab80 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -1104,6 +1104,9 @@ static int update_rect(int sx, int sy, int width, int height, int force)
 	memcpy(cvstat.vmem->bgvmem, vmem_ptr->bgvmem, vstat.cols*vstat.rows*sizeof(vmem_ptr->bgvmem[0]));
 	pthread_mutex_unlock(&vmem_lock);
 
+	if (hold_update)
+		redraw_cursor = 0;
+
 	for(y=0;y<height;y++) {
 		pos=(sy+y-1)*cvstat.cols+(sx-1);
 		for(x=0;x<width;x++) {
-- 
GitLab