Fix useless hidepretext option
This commit is contained in:
parent
eb8295e7ae
commit
e6e6ce5464
|
@ -491,6 +491,10 @@ int drawinput(int x, int y, int w) {
|
||||||
|
|
||||||
curpos = TEXTW(ptext) - TEXTW(&ptext[sp.cursor]);
|
curpos = TEXTW(ptext) - TEXTW(&ptext[sp.cursor]);
|
||||||
} else if (pretext != NULL) {
|
} else if (pretext != NULL) {
|
||||||
|
if (hidepretext) {
|
||||||
|
pretext = "";
|
||||||
|
}
|
||||||
|
|
||||||
apply_fribidi(pretext);
|
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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue