diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-06-05 19:50:04 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-06-05 19:50:04 +0200 |
commit | 77c78d88665231970e5eaade43807a28d6b21736 (patch) | |
tree | c6012d9945db7b4007f7bc46521d2ed85b3a28a4 /nncmpp.c | |
parent | 7b41ae16582f4c108d4fa55279b371ae2351e81c (diff) | |
download | nncmpp-77c78d88665231970e5eaade43807a28d6b21736.tar.gz nncmpp-77c78d88665231970e5eaade43807a28d6b21736.tar.xz nncmpp-77c78d88665231970e5eaade43807a28d6b21736.zip |
Fix a little glitch
Diffstat (limited to 'nncmpp.c')
-rw-r--r-- | nncmpp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2210,7 +2210,10 @@ library_tab_on_data (const struct mpd_response *response, (int (*) (const void *, const void *)) library_tab_compare); g_library_tab.super.item_count = items->len; - app_move_selection (0); + // Don't force the selection visible when there's no need to touch it + if (g_library_tab.super.item_selected >= (int) items->len) + app_move_selection (0); + app_invalidate (); } |