billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=fe58cd058b8ea4de70f519e608f40aef3ea09605

commit fe58cd058b8ea4de70f519e608f40aef3ea09605
Author: Boris Faure <bill...@gmail.com>
Date:   Mon Aug 10 21:44:05 2015 +0200

    only use beacon when it seems efficient
---
 src/bin/termpty.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 50b86ab..66752da 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -792,6 +792,12 @@ _termpty_cellrow_from_beacon_get(Termpty *ty, int 
requested_y, ssize_t *wret)
 
    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) {
         Termsave *ts;
         int nb_lines;

-- 


Reply via email to