Merge pull request #9 from kiprasmel/fix/patch-keyboardselect_st.c-with-ligatures

fix keyboardselect patch when combined with ligatures patch
This commit is contained in:
Stein Gunnar Bakkeby 2021-02-24 08:44:53 +01:00 committed by GitHub
commit d7b6b1c1c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,8 +42,14 @@ void select_or_drawcursor(int selectsearch_mode, int type) {
xsetsel(getsel()); xsetsel(getsel());
} }
else else
xdrawcursor(term.c.x, term.c.y, term.line[term.c.y][term.c.x], #if LIGATURES_PATCH
term.ocx, term.ocy, term.line[term.ocy][term.ocx]); 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) { void search(int selectsearch_mode, Rune *target, int ptarget, int incr, int type, TCursor *cu) {