display selected item/now playing suffix in column view

This commit is contained in:
Andrzej Rybczak
2010-02-05 15:30:20 +01:00
parent 71c81719b5
commit e40ced8daf
3 changed files with 35 additions and 6 deletions

View File

@@ -387,6 +387,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.lines_scrolled = 2;
conf.search_engine_default_search_mode = 0;
conf.selected_item_suffix_length = 0;
conf.now_playing_suffix_length = 0;
# ifdef HAVE_LANGINFO_H
conf.system_encoding = nl_langinfo(CODESET);
if (conf.system_encoding == "UTF-8") // mpd uses utf-8 by default so no need to convert
@@ -765,6 +766,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.now_playing_suffix.Clear();
String2Buffer(TO_WSTRING(v), conf.now_playing_suffix);
conf.now_playing_suffix_length = Window::Length(conf.now_playing_suffix.Str());
}
}
else if (cl.find("color1") != std::string::npos)