From c14833400837f46af5451bf20c25b3c514eb811d Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Wed, 24 Feb 2021 00:58:48 +0200 Subject: [PATCH] fix keyboardselect patch when combined with ligatures patch Signed-off-by: Kipras Melnikovas --- patch/keyboardselect_st.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/patch/keyboardselect_st.c b/patch/keyboardselect_st.c index 1b28122..51d95e2 100644 --- 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) {