mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 04:46:22 +00:00
Do not use tmoveto in tputtab.
tmoveto resets CURSOR_WRAPNEXT. Simple testcase: for i in $(seq 1 200); do printf '\t.'; usleep 100000; printf '\t@'; usleep 100000; done In st executing this script causes @ and . to overwrite each other in the last column.
This commit is contained in:
parent
5bb90125c8
commit
9eb70a2d3e
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -2390,7 +2390,7 @@ tputtab(int n) {
|
||||||
for(--x; x > 0 && !term.tabs[x]; --x)
|
for(--x; x > 0 && !term.tabs[x]; --x)
|
||||||
/* nothing */ ;
|
/* nothing */ ;
|
||||||
}
|
}
|
||||||
tmoveto(x, term.c.y);
|
term.c.x = LIMIT(x, 0, term.col-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue