billiob pushed a commit to branch master.

commit f810600875dfb9bd89480da73f2d743eadfc7612
Author: Boris Faure <[email protected]>
Date:   Sat Mar 23 23:18:56 2013 +0100

    reflow: move cursor line when horizontally expanding
---
 src/bin/termpty.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index ae4808d..6d49a66 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -707,6 +707,11 @@ expand_screen:
                }
           }
      }
+   if (y < old_h)
+     {
+        ty->state.cy -= old_h - y;
+        if (ty->state.cy < 0) ty->state.cy = 0;
+     }
 #undef OLD_SCREEN
 }
 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to