IncrementalInserter: fix OpenLineBelow

This commit is contained in:
Maxime Coste 2011-10-18 14:13:19 +00:00
parent 32e01947fa
commit 7e2f7f6715

View File

@ -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;