mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
Fix crash in paragraph selection
This commit is contained in:
parent
b963d0b11c
commit
e0cd8ad93c
@ -346,9 +346,7 @@ Selection select_paragraph(const Buffer& buffer, const Selection& selection, Obj
|
|||||||
++last;
|
++last;
|
||||||
while (last != buffer.end())
|
while (last != buffer.end())
|
||||||
{
|
{
|
||||||
char cur = *last;
|
if (last != buffer.begin() and is_eol(*last) and is_eol(*(last-1)))
|
||||||
char prev = *(last-1);
|
|
||||||
if (is_eol(cur) and is_eol(prev))
|
|
||||||
{
|
{
|
||||||
if (not (flags & ObjectFlags::Inner))
|
if (not (flags & ObjectFlags::Inner))
|
||||||
skip_while(last, buffer.end(), is_eol);
|
skip_while(last, buffer.end(), is_eol);
|
||||||
|
Loading…
Reference in New Issue
Block a user