Selectors: fix select_line on the last line
This commit is contained in:
parent
5821995054
commit
b1daf8de16
|
@ -181,7 +181,7 @@ Selection select_to_previous_WORD(const BufferIterator& cursor)
|
|||
Selection select_line(const BufferIterator& cursor)
|
||||
{
|
||||
BufferIterator first = cursor;
|
||||
if (*first == '\n' and not first.is_end())
|
||||
if (*first == '\n' and not (first + 1).is_end())
|
||||
++first;
|
||||
|
||||
while (not first.is_begin() and *(first - 1) != '\n')
|
||||
|
|
Loading…
Reference in New Issue
Block a user