billiob pushed a commit to branch master.

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

commit 8dd7aefcb442c37aa9f28c89ef8ab1b13db4583c
Author: Al Poole <nets...@gmail.com>
Date:   Tue Dec 6 23:42:10 2016 +0100

    Fix bogus hack and restore cursor position to its right place. On OpenBSD 
and DragonFly the cursor is being incorrectly placed. Seems there was a Linux 
workaround too. My guess is this will fix that also.
    
    Summary: Should help anyway.
    
    Reviewers: billiob, raster
    
    Differential Revision: https://phab.enlightenment.org/D4465
---
 src/bin/termio.c  | 13 +++++++++++--
 src/bin/termpty.c |  3 ---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 404f305..e17f263 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5098,8 +5098,17 @@ _smart_size(Evas_Object *obj, int w, int h, Eina_Bool 
force)
    Termio *sd = evas_object_smart_data_get(obj);
    EINA_SAFETY_ON_NULL_RETURN(sd);
 
-   if (w < 1) w = 1;
-   if (h < 1) h = 1;
+   if (w <= 1) 
+     {
+        h = 24;
+        w = 80;
+     }
+   else if (h <= 1)
+     {
+        h = 24;
+        w = 80;
+     }
+
    if (!force)
      {
         if ((w == sd->grid.w) && (h == sd->grid.h)) return;
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 0d5f77d..4c9330d 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -1148,10 +1148,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
        effective_old_h;
    int altbuf = 0;
    struct screen_info new_si = {.screen = NULL};
-
    if ((ty->w == new_w) && (ty->h == new_h)) return;
-   if ((new_w == new_h) && (new_w == 1)) return; // FIXME: something weird is
-                                                 // going on at term init
 
    termpty_backlog_lock();
 

-- 


Reply via email to