From c2e1c2c3fa200fecef15234f611bf504d117d6fb Mon Sep 17 00:00:00 2001 From: godfath3r Date: Wed, 5 Aug 2015 22:42:21 +0300 Subject: 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 --- src/bin/miniview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) ty = termio_pty_get(mv->termio); evas_object_geometry_get(mv->termio, &ox, &oy, &ow, &oh); - if ((ow == 0) || (oh == 0)) return EINA_TRUE; + if ((ow == 0) || (oh == 0) || (mv->cols == 1)) return EINA_TRUE; history_len = termpty_backlog_length(ty); -- cgit v1.2.1