aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-06-04 18:35:46 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-06-04 18:35:46 +0200
commitede4196eae7856c5fca6df82bea341009dc51cf9 (patch)
tree2d2ae8c84bdec28e2b8c3ed8766a8559e984c0c6 /src/bin/termptyesc.c
parenttermptyesc: improve const-correctness of data (diff)
downloadterminology-ede4196eae7856c5fca6df82bea341009dc51cf9.tar.gz
termptyesc: fix invalid clamping on CSI X
Fixes a regression introduced by commit bd6c81e, which broke the ncurses rendering of the Kernel menuconfig, making it impossible to be used.
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 1ca53c5..35183f8 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -982,7 +982,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
break;
case 'X': // erase N chars
arg = _csi_arg_get(&b);
- TERMPTY_RESTRICT_FIELD(arg, 1, ty->h);
+ TERMPTY_RESTRICT_FIELD(arg, 1, ty->w);
DBG("erase %d chars", arg);
termpty_clear_line(ty, TERMPTY_CLR_END, arg);
break;