new feature: support for centered cursor (disabled by default)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user