X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=4d1c1bb87f18d4c643111f9f17525785651df6d5;hb=ce3efa9e9b50b0d86ef2d030657dfc69034d6ef7;hp=fa4136abda8c1eaf18f9f8e3ae0afd26b0d4a86f;hpb=26c101b70671d1adbdd4e31af70502605fe3ebbf;p=st.git diff --git a/st.c b/st.c index fa4136a..4d1c1bb 100644 --- a/st.c +++ b/st.c @@ -807,7 +807,6 @@ void selclear(XEvent *e) { void selrequest(XEvent *e) { - fprintf(stderr, "selrequest\n"); XSelectionRequestEvent *xsre; XSelectionEvent xev; Atom xa_targets, string; @@ -843,7 +842,6 @@ selrequest(XEvent *e) { void xsetsel(char *str) { - fprintf(stderr, "xsetsel: %s\n", str); /* register the selection for both the clipboard and the primary */ Atom clipboard; @@ -1745,8 +1743,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);