diff options
| author | nyamatongwe <devnull@localhost> | 2009-10-15 11:05:00 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-10-15 11:05:00 +0000 | 
| commit | e9de1762eb2692cf9edcb12e52e01b217817839f (patch) | |
| tree | 1d4b4f719ae392319d1e66077a6d8aec18760d2f | |
| parent | 87eb88f65846b1ded93e2319f2884867780f13f1 (diff) | |
| download | scintilla-mirror-e9de1762eb2692cf9edcb12e52e01b217817839f.tar.gz | |
Allow for line end characters for last change.
| -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;  | 
