fix keyboardselect patch when combined with ligatures patch

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
This commit is contained in:
Kipras Melnikovas 2021-02-24 00:58:48 +02:00
parent 9c0f91c892
commit c148334008
No known key found for this signature in database
GPG Key ID: AA505BC1C6D8AD90
1 changed files with 8 additions and 2 deletions

View File

@ -42,8 +42,14 @@ void select_or_drawcursor(int selectsearch_mode, int type) {
xsetsel(getsel());
}
else
#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) {