aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-03-24 13:40:05 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2014-03-24 13:40:05 +0100
commitcd189663bd76289f02eb25b11c010e6545003fb2 (patch)
tree23b0c3d4421843e535bc82e2c9b243b152aa2bb0 /src/bin/termptyesc.c
parentreturn after failed memory allocation (diff)
downloadterminology-cd189663bd76289f02eb25b11c010e6545003fb2.tar.gz
remove dead code
We make sure that arg >= 0 before this line, so check is redundant. CID 1100658
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 71426ef..c5b5d72 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -443,8 +443,8 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
arg--;
}
else arg = 0;
- if (arg < 0) arg = 0;
- else if (arg >= ty->w) arg = ty->w - 1;
+
+ if (arg >= ty->w) arg = ty->w - 1;
if (b) ty->state.cx = arg;
}
ty->state.cy += ty->state.margin_top;