From b1daf8de16d7612ed116d3a5f98469ef1835e74c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 2 Dec 2011 18:56:18 +0000 Subject: [PATCH] Selectors: fix select_line on the last line --- src/selectors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selectors.cc b/src/selectors.cc index aa5e92f0..9266514b 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -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')