diff options
author | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
commit | b512802eb2babc879a109d16ce4a32b2fb1c22ef (patch) | |
tree | a2e28c2541ebb03e0254ab0d2f18c6cf35286f7b /src/list_window.c | |
parent | 45352152fbdcac20b39161069406ad6d5288bd98 (diff) | |
download | mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.gz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.xz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.zip |
list_window: converted "flags" to one "bool" variable
Currently, there is only one known list_window flag ("hide_cursor").
Replace the "flags" bit field with a boolean variable. If we run out
of space some day, we can convert that to bool:1.
Diffstat (limited to 'src/list_window.c')
-rw-r--r-- | src/list_window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list_window.c b/src/list_window.c index b12e8eb8c..ea4b3c28e 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -166,7 +166,7 @@ list_window_paint(struct list_window *lw, { unsigned i; bool fill = options.wide_cursor; - bool show_cursor = !(lw->flags & LW_HIDE_CURSOR); + bool show_cursor = !lw->hide_cursor; if (show_cursor) { if (lw->selected < lw->start) |