diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-18 14:13:19 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-18 14:13:19 +0000 |
| commit | 7e2f7f6715909dcaf4d826a0ab558dbb2d1db887 (patch) | |
| tree | a15945d463aed8f098999e46dc482a6cad1b290a /src | |
| parent | 32e01947fa1d56a171d64e9144a9a1ccfc1a250f (diff) | |
IncrementalInserter: fix OpenLineBelow
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index 0f1714da..0c7991c7 100644 --- a/src/window.cc +++ b/src/window.cc @@ -402,7 +402,7 @@ IncrementalInserter::IncrementalInserter(Window& window, Mode mode) case Mode::Change: pos = sel.begin(); break; case Mode::OpenLineBelow: - pos = sel.end(); + pos = sel.last(); while (not pos.is_end() and *pos != '\n') ++pos; ++pos; |
