Merge remote-tracking branch 'potatoalienof13/master'

This commit is contained in:
Maxime Coste 2023-03-09 21:09:43 +11:00
commit 38077ca826
3 changed files with 7 additions and 0 deletions

View File

@ -420,6 +420,12 @@ select_to_reverse(const Context& context, const Selection& selection,
Codepoint c, int count, bool inclusive)
{
auto& buffer = context.buffer();
// if we are selecting backwards from the beginning of the buffer,
// there is nothing more that can be selected.
if (selection.cursor() == buffer.begin())
return {};
Utf8Iterator begin{buffer.iterator_at(selection.cursor()), buffer};
Utf8Iterator end = begin;
do

View File

@ -0,0 +1 @@
<a-t><ret>