Do not select the next word for inner word.
This commit is contained in:
parent
c7356c8e9c
commit
a51d5a1046
|
@ -149,8 +149,9 @@ Selection select_word(const Buffer& buffer, const Selection& selection,
|
||||||
{
|
{
|
||||||
Utf8Iterator first{buffer.iterator_at(selection.cursor()), buffer};
|
Utf8Iterator first{buffer.iterator_at(selection.cursor()), buffer};
|
||||||
if (not is_word<word_type>(*first) and
|
if (not is_word<word_type>(*first) and
|
||||||
not skip_while(first, buffer.end(), [](Codepoint c)
|
((flags & ObjectFlags::Inner) or
|
||||||
{ return not is_word<word_type>(c); }))
|
not skip_while(first, buffer.end(), [](Codepoint c)
|
||||||
|
{ return not is_word<word_type>(c); })))
|
||||||
return selection;
|
return selection;
|
||||||
|
|
||||||
Utf8Iterator last = first;
|
Utf8Iterator last = first;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user