fix drawing selected_item_{prefix,suffix}

This commit is contained in:
Andrzej Rybczak
2009-12-31 11:30:12 +01:00
parent 455f729bef
commit 444354f860
4 changed files with 6 additions and 2 deletions

View File

@@ -333,6 +333,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.lyrics_db = 0;
conf.regex_type = 0;
conf.lines_scrolled = 2;
conf.selected_item_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
@@ -688,6 +689,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.selected_item_suffix.Clear();
String2Buffer(v, conf.selected_item_suffix);
conf.selected_item_suffix_length = Window::Length(conf.selected_item_suffix.Str());
}
}
else if (cl.find("now_playing_prefix") != std::string::npos)