only use beacon when it seems efficient
This commit is contained in:
parent
d0bedb9a8a
commit
fe58cd058b
|
@ -792,6 +792,12 @@ _termpty_cellrow_from_beacon_get(Termpty *ty, int requested_y, ssize_t *wret)
|
||||||
|
|
||||||
requested_y = -requested_y;
|
requested_y = -requested_y;
|
||||||
|
|
||||||
|
/* check if going from 0,0 is faster than using the beacon */
|
||||||
|
if (screen_y - requested_y > requested_y)
|
||||||
|
{
|
||||||
|
backlog_y = 1;
|
||||||
|
screen_y = 1;
|
||||||
|
}
|
||||||
while (42) {
|
while (42) {
|
||||||
Termsave *ts;
|
Termsave *ts;
|
||||||
int nb_lines;
|
int nb_lines;
|
||||||
|
|
Loading…
Reference in New Issue