support count in search next, and only push jump in replace mode
This commit is contained in:
parent
6d93552fbc
commit
fe363094cf
|
@ -177,8 +177,12 @@ void do_search_next(Context& context)
|
|||
const String& ex = RegisterManager::instance()['/'].values(context)[0];
|
||||
if (not ex.empty())
|
||||
{
|
||||
if (mode == SelectMode::Replace)
|
||||
context.push_jump();
|
||||
int count = context.numeric_param();
|
||||
do {
|
||||
context.editor().select(std::bind(select_next_match, _1, ex), mode);
|
||||
} while (--count > 0);
|
||||
}
|
||||
else
|
||||
context.print_status("no search pattern");
|
||||
|
|
Loading…
Reference in New Issue
Block a user