mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 18:41:29 +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)
|
||||
captures.push_back(String(match.first, match.second));
|
||||
}
|
||||
else
|
||||
throw runtime_error("'" + regex + "': no matches found");
|
||||
|
||||
if (begin == end)
|
||||
++end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user