X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=st.c;h=a1932dd4e69de6b0b8a9bf62981f9dbee33073e5;hb=efd04ccad6d3c4e981b3efdb0423d8f5ca40f984;hp=fa4136abda8c1eaf18f9f8e3ae0afd26b0d4a86f;hpb=26c101b70671d1adbdd4e31af70502605fe3ebbf;p=st.git diff --git a/st.c b/st.c index fa4136a..a1932dd 100644 --- a/st.c +++ b/st.c @@ -1745,8 +1745,8 @@ csihandle(void) { break; case 'X': /* ECH -- Erase char */ DEFAULT(csiescseq.arg[0], 1); - tclearregion(term.c.x, term.c.y, term.c.x + csiescseq.arg[0], - term.c.y, 1); + tclearregion(term.c.x, term.c.y, + term.c.x + csiescseq.arg[0] - 1, term.c.y, 1); break; case 'P': /* DCH -- Delete char */ DEFAULT(csiescseq.arg[0], 1);