Merge remote-tracking branch 'occivink/no-sel-remaining-alt-space'
This commit is contained in:
commit
489404befa
|
@ -2106,7 +2106,7 @@ void remove_selection(Context& context, NormalParams p)
|
||||||
if (index >= selections.size())
|
if (index >= selections.size())
|
||||||
throw runtime_error{format("invalid selection index: {}", index)};
|
throw runtime_error{format("invalid selection index: {}", index)};
|
||||||
if (selections.size() == 1)
|
if (selections.size() == 1)
|
||||||
throw runtime_error{"cannot remove the last selection"};
|
throw no_selections_remaining{};
|
||||||
|
|
||||||
selections.remove(index);
|
selections.remove(index);
|
||||||
selections.check_invariant();
|
selections.check_invariant();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user