diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-12 20:51:32 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-12 20:51:32 +0300 |
commit | 6692f73c5c3e34baa5b5d8e2fdfa524291979317 (patch) | |
tree | c6b2f2ae688e3e80562f71f09bcf8d9421fc02a5 | |
parent | bfc53136c8fbea59f116d8d0de92b2711f7804c0 (diff) | |
download | bemenu-6692f73c5c3e34baa5b5d8e2fdfa524291979317.tar.gz bemenu-6692f73c5c3e34baa5b5d8e2fdfa524291979317.tar.bz2 bemenu-6692f73c5c3e34baa5b5d8e2fdfa524291979317.zip |
Meh, no (null) it's empty if it's empty.
-rw-r--r-- | lib/draw/curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/draw/curses.c b/lib/draw/curses.c index 656e47d..946275e 100644 --- a/lib/draw/curses.c +++ b/lib/draw/curses.c @@ -196,7 +196,7 @@ static void _bmDrawCursesRender(const bmMenu *menu) for (i = (menu->index / (lines - 1)) * (lines - 1); i < itemsCount && cl < lines; ++i) { int highlighted = (items[i] == bmMenuGetHighlightedItem(menu)); int color = (highlighted ? 2 : (_bmMenuItemIsSelected(menu, items[i]) ? 1 : 0)); - _bmDrawCursesDrawLine(color, cl++, "%s%s", (highlighted ? ">> " : " "), (items[i]->text ? items[i]->text : "(null)")); + _bmDrawCursesDrawLine(color, cl++, "%s%s", (highlighted ? ">> " : " "), (items[i]->text ? items[i]->text : "")); } unsigned int ncols = curses.getmaxx(curses.stdscr) - titleLen - 1; |