convert selected_item_suffix to wide string before checking its length
This commit is contained in:
@@ -689,7 +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());
|
||||
conf.selected_item_suffix_length = Window::Length(TO_WSTRING(conf.selected_item_suffix.Str()));
|
||||
}
|
||||
}
|
||||
else if (cl.find("now_playing_prefix") != std::string::npos)
|
||||
|
||||
Reference in New Issue
Block a user