Fix weird segmentation fault

This commit is contained in:
Jacob 2023-07-29 21:17:42 +02:00
parent 894a672b84
commit b43694a537

View file

@ -490,11 +490,7 @@ int drawinput(int x, int y, int w) {
draw_text(draw, x, y, w, sp.bh, sp.lrpad / 2, isrtl ? fribidi_text : ptext, 0, pango_input ? True : False, col_inputfg, col_inputbg, alpha_inputfg, alpha_inputbg);
curpos = TEXTW(ptext) - TEXTW(&ptext[sp.cursor]);
} else {
if (hidepretext) {
pretext = "";
}
} else if (pretext != NULL) {
apply_fribidi(pretext);
draw_text(draw, x + fw, y, w, sp.bh, sp.lrpad / 2, isrtl ? fribidi_text : pretext, 0, pango_pretext ? True : False, col_pretextfg, col_pretextbg, alpha_pretextfg, alpha_pretextbg);
}