mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 01:00:28 +03:00
Editor: fix select(Selection&, SelectMode::Replace)
This commit is contained in:
parent
07a2c2944f
commit
d99fe87b43
@ -241,7 +241,10 @@ void Editor::remove_selection(int index)
|
||||
void Editor::select(const Selection& selection, SelectMode mode)
|
||||
{
|
||||
if (mode == SelectMode::Replace)
|
||||
{
|
||||
m_selections = SelectionList{ selection };
|
||||
m_main_sel = 0;
|
||||
}
|
||||
else if (mode == SelectMode::Extend)
|
||||
{
|
||||
m_selections[m_main_sel].merge_with(selection);
|
||||
|
Loading…
Reference in New Issue
Block a user