mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
Revert "Fix cursor move with wide glyphs" ref. #118
This reverts commit 400aa4492f
.
This commit is contained in:
parent
cd37481bde
commit
3564593563
6
st.c
6
st.c
@ -2811,16 +2811,12 @@ tstrsequence(uchar c)
|
|||||||
void
|
void
|
||||||
tcontrolcode(uchar ascii)
|
tcontrolcode(uchar ascii)
|
||||||
{
|
{
|
||||||
size_t i;
|
|
||||||
|
|
||||||
switch (ascii) {
|
switch (ascii) {
|
||||||
case '\t': /* HT */
|
case '\t': /* HT */
|
||||||
tputtab(1);
|
tputtab(1);
|
||||||
return;
|
return;
|
||||||
case '\b': /* BS */
|
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-1, term.c.y);
|
||||||
;
|
|
||||||
tmoveto(term.c.x - i, term.c.y);
|
|
||||||
return;
|
return;
|
||||||
case '\r': /* CR */
|
case '\r': /* CR */
|
||||||
tmoveto(0, term.c.y);
|
tmoveto(0, term.c.y);
|
||||||
|
Loading…
Reference in New Issue
Block a user