add support for external console editor

This commit is contained in:
Andrzej Rybczak
2009-03-04 15:34:04 +01:00
parent 73f7980019
commit d8a6993ec2
4 changed files with 25 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.ignore_leading_the = false;
conf.stop_after_current_song = false;
conf.block_search_constraints_change = true;
conf.use_console_editor = false;
conf.set_window_title = true;
conf.mpd_port = 6600;
conf.mpd_connection_timeout = 15;
@@ -639,6 +640,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.ignore_leading_the = v == "yes";
}
else if (cl.find("use_console_editor") != string::npos)
{
conf.use_console_editor = v == "yes";
}
else if (cl.find("block_search_constraints_change_if_items_found") != string::npos)
{
conf.block_search_constraints_change = v == "yes";