parent
98b0560335
commit
e2bfd9e3b2
|
@ -594,6 +594,9 @@ Selection selection_from_string(StringView desc)
|
|||
|
||||
SelectionList selection_list_from_string(Buffer& buffer, StringView desc)
|
||||
{
|
||||
if (desc.empty())
|
||||
throw runtime_error{"empty selection description"};
|
||||
|
||||
Vector<Selection> sels;
|
||||
for (auto sel_desc : desc | split<StringView>(':'))
|
||||
sels.push_back(selection_from_string(sel_desc));
|
||||
|
|
Loading…
Reference in New Issue
Block a user