diff options
author | nyamatongwe <unknown> | 2009-10-15 11:05:00 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-10-15 11:05:00 +0000 |
commit | fbbe9e307d4edf59cb7afe98dad85fc3abe9af8e (patch) | |
tree | 1d4b4f719ae392319d1e66077a6d8aec18760d2f /src/Editor.cxx | |
parent | a1be9c6102a15dd040c5f4b28840f417daa3a0e2 (diff) | |
download | scintilla-mirror-fbbe9e307d4edf59cb7afe98dad85fc3abe9af8e.tar.gz |
Allow for line end characters for last change.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |