summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 15:19:31 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 15:19:31 +0100
commit6e8faa30a762739bb07504134a20289eae8bb1bf (patch)
tree4414666057411341a2c788f8a4159216b58d35db /src
parent19a99dadfffbc5a83eeb2df14913bbdd0af78419 (diff)
termptyesc: refuse no value on decfra on the character to fill up + tests
Diffstat (limited to 'src')
-rw-r--r--src/bin/termptyesc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 814f4e7..f4f5004 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1528,14 +1528,13 @@ _handle_esc_csi_decfra(Termpty *ty, Eina_Unicode **b)
1528 DBG("DECFRA (%d; %d;%d;%d;%d) Fill Rectangular Area", 1528 DBG("DECFRA (%d; %d;%d;%d;%d) Fill Rectangular Area",
1529 c, top, left, bottom, right); 1529 c, top, left, bottom, right);
1530 if ((c == -CSI_ARG_ERROR) || 1530 if ((c == -CSI_ARG_ERROR) ||
1531 (c == -CSI_ARG_NO_VALUE) ||
1531 (top == -CSI_ARG_ERROR) || 1532 (top == -CSI_ARG_ERROR) ||
1532 (left == -CSI_ARG_ERROR) || 1533 (left == -CSI_ARG_ERROR) ||
1533 (bottom == -CSI_ARG_ERROR) || 1534 (bottom == -CSI_ARG_ERROR) ||
1534 (right == -CSI_ARG_ERROR)) 1535 (right == -CSI_ARG_ERROR))
1535 return; 1536 return;
1536 1537
1537 /* TODO: -CSI_ARG_NO_VALUE */
1538
1539 if (! ((c >= 32 && c <= 126) || (c >= 160 && c <= 255))) 1538 if (! ((c >= 32 && c <= 126) || (c >= 160 && c <= 255)))
1540 return; 1539 return;
1541 1540