billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=cc5fcac03d56a2aa05ff9b9a709de0c4baada4c5
commit cc5fcac03d56a2aa05ff9b9a709de0c4baada4c5 Author: Boris Faure <[email protected]> Date: Mon Jun 5 23:53:07 2017 +0200 termptyesc: fix handling of DECSLRM. Ref T5533 --- src/bin/termptyesc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index cead2ce..52bc1c4 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -779,6 +779,8 @@ _handle_esc_csi_decslrm(Termpty *ty, Eina_Unicode **b) DBG("DECSLRM (%d;%d) Set Left and Right Margins", left, right); TERMPTY_RESTRICT_FIELD(left, 1, ty->w); + if (right < 1) + right = ty->w; TERMPTY_RESTRICT_FIELD(right, 3, ty->w+1); if (left >= right) goto bad; --
