billiob pushed a commit to branch master.
commit fc7dcbdad6984a8cce7a0b35e153d754119abada
Author: Boris Faure <[email protected]>
Date: Fri Mar 29 21:42:37 2013 +0100
reflow: don't let resize to 1x1
this occurs on terminolog start. dunno why ftm but it annoys me
---
src/bin/termpty.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 255d954..ac08723 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -473,7 +473,6 @@ ssize_t termpty_line_length(const Termcell *cells, ssize_t
nb_cells)
{
ssize_t len = nb_cells;
-
for (len = nb_cells - 1; len >= 0; len--)
{
const Termcell *cell = cells + len;
@@ -1066,10 +1065,13 @@ void
termpty_resize(Termpty *ty, int w, int h)
{
Termcell *olds, *olds2;
- int y, ww, hh, oldw, oldh;
+ int oldw, oldh;
if ((ty->w == w) && (ty->h == h)) return;
+ if (w == h && h == 1) // fuck off
+ return;
+
olds = ty->screen;
olds2 = ty->screen2;
oldw = ty->w;
--
------------------------------------------------------------------------------
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