st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit c14833400837f46af5451bf20c25b3c514eb811d
parent 9c0f91c8922dd83c268b5927957cb8ee693850b2
Author: Kipras Melnikovas <kipras@kipras.org>
Date:   Wed, 24 Feb 2021 00:58:48 +0200

fix keyboardselect patch when combined with ligatures patch

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>

Diffstat:
Mpatch/keyboardselect_st.c | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/patch/keyboardselect_st.c b/patch/keyboardselect_st.c @@ -42,8 +42,14 @@ void select_or_drawcursor(int selectsearch_mode, int type) { xsetsel(getsel()); } else - xdrawcursor(term.c.x, term.c.y, term.line[term.c.y][term.c.x], - term.ocx, term.ocy, term.line[term.ocy][term.ocx]); + #if LIGATURES_PATCH + xdrawcursor(term.c.x, term.c.y, term.line[term.c.y][term.c.x], + term.ocx, term.ocy, term.line[term.ocy][term.ocx], + term.line[term.ocy], term.col); + #else + xdrawcursor(term.c.x, term.c.y, term.line[term.c.y][term.c.x], + term.ocx, term.ocy, term.line[term.ocy][term.ocx]); + #endif } void search(int selectsearch_mode, Rune *target, int ptarget, int incr, int type, TCursor *cu) {