Selectors: select_next_match starts from cursor+1
so searching effectively starts on the character after current selection end. Which makes repeating 'n' on a one character match work.
This commit is contained in:
parent
8b1b1d9cd8
commit
e02cb4e5bd
|
@ -367,7 +367,7 @@ Selection select_next_match(const BufferIterator& cursor,
|
|||
{
|
||||
boost::match_results<BufferIterator> matches;
|
||||
|
||||
if (boost::regex_search(cursor, cursor.buffer().end(), matches,
|
||||
if (boost::regex_search(cursor+1, cursor.buffer().end(), matches,
|
||||
ex))
|
||||
{
|
||||
begin = matches[0].first;
|
||||
|
@ -375,7 +375,7 @@ Selection select_next_match(const BufferIterator& cursor,
|
|||
std::copy(matches.begin(), matches.end(),
|
||||
std::back_inserter(captures));
|
||||
}
|
||||
else if (boost::regex_search(cursor.buffer().begin(), cursor, matches,
|
||||
else if (boost::regex_search(cursor.buffer().begin(), cursor+1, matches,
|
||||
ex))
|
||||
{
|
||||
begin = matches[0].first;
|
||||
|
|
Loading…
Reference in New Issue
Block a user