diff options
Diffstat (limited to 'src/selection.cc')
| -rw-r--r-- | src/selection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection.cc b/src/selection.cc index 781f7c4f..d637e007 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -413,7 +413,7 @@ void SelectionList::insert(ConstArrayView<String> strings, InsertMode mode, auto& min = sel.min(); auto& max = sel.max(); min = range.begin; - max = m_buffer->char_prev(range.end); + max = range.end > range.begin ? m_buffer->char_prev(range.end) : range.begin; } else { |
