mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-22 02:51:32 +03:00
whine when a search selected nothing so that the user knows
This commit is contained in:
parent
cfbe32f6a2
commit
ec57990060
@ -401,6 +401,9 @@ SelectionAndCaptures select_next_match(const Selection& selection,
|
|||||||
for (auto& match : matches)
|
for (auto& match : matches)
|
||||||
captures.push_back(String(match.first, match.second));
|
captures.push_back(String(match.first, match.second));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
throw runtime_error("'" + regex + "': no matches found");
|
||||||
|
|
||||||
if (begin == end)
|
if (begin == end)
|
||||||
++end;
|
++end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user