diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-03-30 11:13:45 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-03-30 11:13:45 +0100 |
| commit | c3a1318ffd929d6ea8f66631f2daed484bd0ca20 (patch) | |
| tree | 81be21046283f47c2031d2676a1c293d618fe390 | |
| parent | 5079d78747d69d1f47855b80b4772b6a77b2b909 (diff) | |
When selecting forward paragraph and we are on an end of line, select the next one.
Fixes #62. Thanks to alexherbo2.
| -rw-r--r-- | src/selectors.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
