X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=6522c9ddc1420e3a8a1ea98e833ba7ffd85b88fa;hb=9305f3c184a0179e37802e752c3d1dc830ae893c;hp=39d3fee36017a0fd73301e64f3942d6612315ce5;hpb=288f80cb06b442ef0f55ea62bbceb3260338bf7a;p=st.git diff --git a/st.c b/st.c index 39d3fee..6522c9d 100644 --- a/st.c +++ b/st.c @@ -359,7 +359,7 @@ static void csidump(void); static void csihandle(void); static void csiparse(void); static void csireset(void); -static int eschandle(uchar ascii); +static int eschandle(uchar); static void strdump(void); static void strhandle(void); static void strparse(void); @@ -406,7 +406,7 @@ static void ttyread(void); static void ttyresize(void); static void ttysend(char *, size_t); static void ttywrite(const char *, size_t); -static void tstrsequence(uchar c); +static void tstrsequence(uchar); static void xdraws(char *, Glyph, int, int, int, int); static void xhints(void); @@ -2648,7 +2648,6 @@ tputc(char *c, int len) { c = "\357\277\275"; /* UTF_INVALID */ width = 1; } - control = ISCONTROLC1(unicodep); ascii = unicodep; } @@ -2663,7 +2662,7 @@ tputc(char *c, int len) { * character. */ if(term.esc & ESC_STR) { - if(width == 1 && + if(len == 1 && (ascii == '\a' || ascii == 030 || ascii == 032 || ascii == 033 || ISCONTROLC1(unicodep))) {