From e9de1762eb2692cf9edcb12e52e01b217817839f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 15 Oct 2009 11:05:00 +0000 Subject: Allow for line end characters for last change. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 054933569..8d48440e5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4539,7 +4539,7 @@ void Editor::Duplicate(bool forLine) { SelectionPosition last = sel.Last(); if (forLine) { int line = pdoc->LineFromPosition(last.Position()); - last = SelectionPosition(last.Position() + pdoc->LineEnd(line) - pdoc->LineStart(line)); + last = SelectionPosition(last.Position() + pdoc->LineStart(line+1) - pdoc->LineStart(line)); } if (sel.Rectangular().anchor > sel.Rectangular().caret) sel.Rectangular().anchor = last; -- cgit v1.2.3