diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-15 18:20:02 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-15 18:20:02 +0200 |
| commit | a2aefa299874437a87e3ff0aec8f71d7a490408a (patch) | |
| tree | 5fb08bdeb86c04f145ba4ee615a4a0c8d64bbe73 /src/selection.cc | |
| parent | 416785f53c1af30b7c4fbc1a9a22df046b90f009 (diff) | |
avoid keeping end of lines selected in Editor::erase
Diffstat (limited to 'src/selection.cc')
| -rw-r--r-- | src/selection.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/selection.cc b/src/selection.cc index a892e9fc..6f483dc6 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -54,6 +54,12 @@ void Selection::merge_with(const Selection& selection) m_last = selection.m_last; } +void Selection::avoid_eol() +{ + m_first.clamp(true); + m_last.clamp(true); +} + void Selection::on_insert(const BufferIterator& begin, const BufferIterator& end) { m_first.on_insert(begin.coord(), end.coord()); |
