diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2024-03-03 21:10:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 21:10:25 +0000 |
| commit | 363f8ca6d3b41a8f1cc773b6be99d1666620eaa4 (patch) | |
| tree | 947b52bbf976ab3821200ba03e85fe8a29fd4b3e /dmenu.c | |
| parent | 21f4e2fd04c9dc6d4c5f5cfdbc3188b31d4657c0 (diff) | |
add fix for -noi on no prompt
Diffstat (limited to 'dmenu.c')
| -rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -164,7 +164,7 @@ drawmenu(void) if (prompt && *prompt) { drw_setscheme(drw, scheme[SchemeSel]); - x = drw_text(drw, x, 0, ((!draw_input) ? mw : promptw), bh, lrpad / 2, prompt, 0); + x = drw_text(drw, x, 0, !draw_input ? mw : promptw, bh, lrpad / 2, prompt, 0); } if (draw_input) { @@ -182,7 +182,7 @@ drawmenu(void) if (lines > 0) { /* draw vertical list */ for (item = curr; item != next; item = item->right) - drawitem(item, !draw_input ? x - mw : x - promptw, y += bh, mw); + drawitem(item, (!draw_input && prompt && *prompt) ? x - mw : x - promptw, y += bh, mw); } else if (matches) { /* draw horizontal list */ x += inputw; |
