commit d7b6b1c1c67b6561d2a0e9adb119d08d2fa68f28
parent 9c0f91c8922dd83c268b5927957cb8ee693850b2
Author: Stein Gunnar Bakkeby <bakkeby@gmail.com>
Date: Wed, 24 Feb 2021 08:44:53 +0100
Merge pull request #9 from kiprasmel/fix/patch-keyboardselect_st.c-with-ligatures
fix keyboardselect patch when combined with ligatures patch
Diffstat:
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) {