On Mon, Nov 25, 2024 at 01:31:56PM +0200, Markus Rinne wrote:
> With sequence \e[1J, if cursor is on second line, clear the first line.
> ---
> st.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/st.c b/st.c
> index 57c6e96..2e3800e 100644
> --- a/st.c
> +++ b/st.c
> _AT_@ -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;
> --
> 2.46.2
>
>
Pushed, thanks!
--
Kind regards,
Hiltjo
Received on Fri Dec 06 2024 - 13:43:39 CET