diff options
| author | Aiden Gall <aiden@aidengall.xyz> | 2024-04-05 15:09:59 +0100 |
|---|---|---|
| committer | Aiden Gall <aiden@aidengall.xyz> | 2024-04-05 15:09:59 +0100 |
| commit | 9d8cc9f05e1cd2bb2d324bb57c38dba3236141b7 (patch) | |
| tree | c70ee7fd3924ee48c3512988f585072aa01c0766 /st.c | |
| parent | c7ed1f4f4b40b2267fb97d879d0a2525b7e5cd66 (diff) | |
| parent | d63b9eb90245926b531bd54b1d591adb96613e70 (diff) | |
merge upstream
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -110,8 +110,8 @@ enum escape_state { typedef struct { Glyph attr; /* current char attributes */ - int x; /* terminal column */ - int y; /* terminal row */ + int x; + int y; char state; } TCursor; @@ -2402,16 +2402,12 @@ tstrsequence(uchar c) void tcontrolcode(uchar ascii) { - size_t i; - switch (ascii) { case '\t': /* HT */ tputtab(1); return; case '\b': /* BS */ - for (i = 1; term.c.x && term.line[term.c.y][term.c.x - i].u == 0; ++i) - ; - tmoveto(term.c.x - i, term.c.y); + tmoveto(term.c.x-1, term.c.y); return; case '\r': /* CR */ tmoveto(0, term.c.y); |
