new feature: support for centered cursor (disabled by default)

This commit is contained in:
Andrzej Rybczak
2009-11-11 00:50:14 +01:00
parent 35a182d79e
commit 3b7f19f095
5 changed files with 13 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.header_visibility = true;
conf.header_text_scrolling = true;
conf.statusbar_visibility = true;
conf.centered_cursor = false;
conf.autocenter_mode = false;
conf.wrapped_search = true;
conf.space_selects = false;
@@ -756,6 +757,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.autocenter_mode = v == "yes";
}
else if (cl.find("centered_cursor") != std::string::npos)
{
conf.centered_cursor = v == "yes";
}
else if (cl.find("default_find_mode") != std::string::npos)
{
conf.wrapped_search = v == "wrapped";