Introduction
Introduction Statistics Contact Development Disclaimer Help
Clear screen: Fix edge case - st - simple terminal
git clone git://git.suckless.org/st
Log
Files
Refs
README
LICENSE
---
commit 6009e6e25bdff9548f085e9ae562b1ca305d3a0b
parent a0274bc20e11d8672bb2953fdd1d3010c0e708c5
Author: Markus Rinne <[email protected]>
Date: Mon, 25 Nov 2024 13:31:56 +0200
Clear screen: Fix edge case
With sequence \e[1J, if cursor is on second line, clear the first line.
Diffstat:
M st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
@@ -1705,7 +1705,7 @@ csihandle(void)
}
break;
case 1: /* above */
- if (term.c.y > 1)
+ if (term.c.y > 0)
tclearregion(0, 0, term.col-1, term.c.y-1);
tclearregion(0, term.c.y, term.c.x, term.c.y);
break;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.