From cfa20c3f423030a72bec0ab1c0388132a0d19e40 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Mon, 29 May 2017 21:12:25 +0200 Subject: [PATCH] display: don't show the cursor while we are busy calculating its position This fixes https://savannah.gnu.org/bugs/?51134. --- src/winio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/winio.c b/src/winio.c index 85bc86e9..f72a8e68 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3184,6 +3184,9 @@ void do_cursorpos(bool force) assert(openfile->fileage != NULL && openfile->current != NULL); + /* Hide the cursor while we are calculating. */ + curs_set(0); + /* Determine the size of the file up to the cursor. */ saved_byte = openfile->current->data[openfile->current_x]; openfile->current->data[openfile->current_x] = '\0'; -- GitLab