From c3a1318ffd929d6ea8f66631f2daed484bd0ca20 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 30 Mar 2014 11:13:45 +0100 Subject: [PATCH] When selecting forward paragraph and we are on an end of line, select the next one. Fixes #62. Thanks to alexherbo2. --- src/selectors.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/selectors.cc b/src/selectors.cc index dbeb94a8..d2090141 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -298,6 +298,8 @@ Selection select_whole_paragraph(const Buffer& buffer, const Selection& selectio } if (flags & ObjectFlags::ToEnd) { + if (last != buffer.end() && is_eol(*last)) + ++last; while (last != buffer.end()) { char cur = *last;