commit cfa20c3f423030a72bec0ab1c0388132a0d19e40
parent 4781d4d351bcea44065856cbb5fbf102d6a984f3
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 29 May 2017 21:12:25 +0200
display: don't show the cursor while we are busy calculating its position
This fixes https://savannah.gnu.org/bugs/?51134.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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';