diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-12-05 08:47:04 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-12-05 08:47:04 +1100 |
| commit | 489404befa46b8a3beeb7f152737d084087d1d11 (patch) | |
| tree | e5e05e2f06125c9bc312a0295e6a89fb040e2195 /src | |
| parent | 95606d23362cea6898f04d75a1483d928532af1e (diff) | |
| parent | f2fb5a3214612fb35f89ad552ee75ef4bb0dde4c (diff) | |
Merge remote-tracking branch 'occivink/no-sel-remaining-alt-space'
Diffstat (limited to 'src')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index 618c0008..fba39d17 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -2106,7 +2106,7 @@ void remove_selection(Context& context, NormalParams p) if (index >= selections.size()) throw runtime_error{format("invalid selection index: {}", index)}; if (selections.size() == 1) - throw runtime_error{"cannot remove the last selection"}; + throw no_selections_remaining{}; selections.remove(index); selections.check_invariant(); |
