Fix small misbehaviour in split_selections
This commit is contained in:
parent
540d82c452
commit
8168cba1a3
|
@ -457,6 +457,7 @@ void split_selections(const Buffer& buffer, SelectionList& selections,
|
|||
result.emplace_back(begin.coord(), (begin == end) ? end.coord() : utf8::previous(end).coord());
|
||||
begin = (*re_it)[0].second;
|
||||
}
|
||||
if (begin.coord() <= sel.max())
|
||||
result.emplace_back(begin.coord(), sel.max());
|
||||
}
|
||||
result.set_main_index(result.size() - 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user