it seems that sometimes . and .. are not the first ones
in directory structure, so check for them in main loop
rather than in separate one at the beginning.
attention! this fix is critical for people who use function
that removes physically directories from hdd with ncmpcpp.
these containers can be empty escpecially if one wants to go for a trip
around ncmpcpp screens while connection to mpd is lost. this is highly
unlikely to happen, but should be secured anyway.
Setting the new config variable "screen_switcher_browser_only" to "no"
will make the "key_screen_switcher" key switch between the current and
the last used screen, sort of like the Alt+Tab window switching
mechanism in many window managers.
This (intendedly) works only for the "main" screens (playlist, browser,
media library, etc.) and not for info/lyrics/server info. Those screens
can be closed with the screen_switcher key, but the will not be
remembered.
indentation correction in config
it removes argument responsible for immediate refreshing.
since after all calls that were refreshing screen there was
call to Refresh() anyway, this switch doesn't make much sense.
due to change of keybinding for switching to local browser,
the trigger is invoked in SwitchTo() if main screen is already
pointing to browser. since we use 'o' in browser to locate now
playing song, this function was switching browser to wrong mode
and thus requested song couldn't be found.
I shouldn't do that, but the old one will be much better for
choosing whether songs in browser have to be sorted by names
or modification date. Besides, binding this to browser key
makes browser behaviour more "compatible" with media library.
files are read in kinda random order, so if one added local dir
to playlist, (s)he would get them not sorted at all. fix that by
sorting files that have been read recently from current dir, so
that we get files sorted within each read directory (if read
recursively), which is nice.