display: don't show the cursor while we are busy calculating its position
This fixes https://savannah.gnu.org/bugs/?51134.master
parent
4781d4d351
commit
cfa20c3f42
|
@ -3184,6 +3184,9 @@ void do_cursorpos(bool force)
|
||||||
|
|
||||||
assert(openfile->fileage != NULL && openfile->current != NULL);
|
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. */
|
/* Determine the size of the file up to the cursor. */
|
||||||
saved_byte = openfile->current->data[openfile->current_x];
|
saved_byte = openfile->current->data[openfile->current_x];
|
||||||
openfile->current->data[openfile->current_x] = '\0';
|
openfile->current->data[openfile->current_x] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue