Commit cfa20c3f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

display: don't show the cursor while we are busy calculating its position

This fixes https://savannah.gnu.org/bugs/?51134.
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment