add incsearch option to choose if incremental search is enabled

This commit is contained in:
Maxime Coste 2012-12-31 14:12:00 +01:00
parent 76c3246642
commit d5582b0df4
2 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,8 @@ void do_search(Context& context)
RegisterManager::instance()['/'] = ex;
context.push_jump();
}
else if (not context.options()["incsearch"].as_int())
return;
context.editor().select(std::bind(select_next_match, _1, ex), mode);
}

View File

@ -99,6 +99,7 @@ GlobalOptions::GlobalOptions()
set_option("BOM", Option("no"));
set_option("shell", Option("sh"));
set_option("complete_prefix", Option(1));
set_option("incsearch", Option(1));
set_option("ignored_files", Option(R"(^(\..*|.*\.(o|so|a))$)"));
}