When selecting forward paragraph and we are on an end of line, select the next one.
Fixes #62. Thanks to alexherbo2.
This commit is contained in:
parent
5079d78747
commit
c3a1318ffd
|
@ -298,6 +298,8 @@ Selection select_whole_paragraph(const Buffer& buffer, const Selection& selectio
|
||||||
}
|
}
|
||||||
if (flags & ObjectFlags::ToEnd)
|
if (flags & ObjectFlags::ToEnd)
|
||||||
{
|
{
|
||||||
|
if (last != buffer.end() && is_eol(*last))
|
||||||
|
++last;
|
||||||
while (last != buffer.end())
|
while (last != buffer.end())
|
||||||
{
|
{
|
||||||
char cur = *last;
|
char cur = *last;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user