diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectors.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selectors.cc b/src/selectors.cc index a6438040..baa2d9ac 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -560,11 +560,11 @@ select_paragraph(const Context& context, const Selection& selection, BufferIterator first = buffer.iterator_at(selection.cursor()); if (not (flags & ObjectFlags::ToEnd) and first.coord() > BufferCoord{0,1} and - *(first-1) == '\n' and *(first-2) == '\n') + is_eol(*(first-1)) and is_eol(*(first-2))) --first; else if ((flags & ObjectFlags::ToEnd) and first != buffer.begin() and (first+1) != buffer.end() and - *(first-1) == '\n' and *first == '\n') + is_eol(*(first-1)) and is_eol(*first)) ++first; BufferIterator last = first; |
