add config option to disable text scrolling in header window

This commit is contained in:
Andrzej Rybczak
2009-06-04 12:13:49 +02:00
parent 5cbc6dfb5b
commit 1e340211be
5 changed files with 13 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.columns_in_browser = false;
conf.columns_in_search_engine = false;
conf.header_visibility = true;
conf.header_text_scrolling = true;
conf.statusbar_visibility = true;
conf.autocenter_mode = false;
conf.wrapped_search = true;
@@ -616,6 +617,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.header_visibility = v == "yes";
}
else if (cl.find("header_text_scrolling") != string::npos)
{
conf.header_text_scrolling = v == "yes";
}
else if (cl.find("statusbar_visibility") != string::npos)
{
conf.statusbar_visibility = v == "yes";