billiob pushed a commit to branch master.
commit 9c9a05e9583bf34cb36d243a602560b186fb70a4
Author: Boris Faure <[email protected]>
Date: Mon Mar 25 23:33:29 2013 +0100
reflow: do not always reset circular_offset on resize
---
src/bin/termpty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index e86bc84..df8d407 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -710,6 +710,7 @@ expand_screen:
ty->state.cy -= old_h - y;
if (ty->state.cy < 0) ty->state.cy = 0;
}
+ ty->circular_offset = 0;
}
static void
@@ -1091,7 +1092,6 @@ termpty_resize(Termpty *ty, int w, int h)
free(olds); olds = NULL;
free(olds2); olds2 = NULL;
- ty->circular_offset = 0;
}
if (ty->h > oldh)
--
------------------------------------------------------------------------------
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