summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgodfath3r <galatsanosp@gmail.com>2015-08-05 22:42:21 +0300
committerBoris Faure <billiob@gmail.com>2015-08-05 22:02:09 +0200
commitc2e1c2c3fa200fecef15234f611bf504d117d6fb (patch)
tree220f25cb6bde91812e4b26b4767b601dffccfe2f /src
parenteea13ce939d49265772a35a0c1dfe73473b44506 (diff)
Fix crash when split is too small and miniview is shown.
Summary: Fixes T2450 Reviewers: billiob Maniphest Tasks: T2450 Differential Revision: https://phab.enlightenment.org/D2919
Diffstat (limited to 'src')
-rw-r--r--src/bin/miniview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/miniview.c b/src/bin/miniview.c
index f1dac82..f06f5cd 100644
--- a/src/bin/miniview.c
+++ b/src/bin/miniview.c
@@ -521,7 +521,7 @@ _deferred_renderer(void *data)
521 521
522 ty = termio_pty_get(mv->termio); 522 ty = termio_pty_get(mv->termio);
523 evas_object_geometry_get(mv->termio, &ox, &oy, &ow, &oh); 523 evas_object_geometry_get(mv->termio, &ox, &oy, &ow, &oh);
524 if ((ow == 0) || (oh == 0)) return EINA_TRUE; 524 if ((ow == 0) || (oh == 0) || (mv->cols == 1)) return EINA_TRUE;
525 525
526 history_len = termpty_backlog_length(ty); 526 history_len = termpty_backlog_length(ty);
527 527