diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-01 10:51:55 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-01 10:51:55 +1000 |
commit | f6ad671e48322e34cf23f75ea4abcff008a15e1a (patch) | |
tree | 00c94093fdb057662841a189463d58be2f2741c8 /src/Selection.cxx | |
parent | 928306bf07dace37ace9eb053b87599ee47145e8 (diff) | |
download | scintilla-mirror-f6ad671e48322e34cf23f75ea4abcff008a15e1a.tar.gz |
Consolidate insertion for paste into Editor class and perform line end
conversion in Editor.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r-- | src/Selection.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx index ae4d8bfc7..4c2ab0508 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -230,6 +230,14 @@ SelectionRange &Selection::RangeMain() { return ranges[mainRange]; } +SelectionPosition Selection::Start() const { + if (IsRectangular()) { + return rangeRectangular.Start(); + } else { + return ranges[mainRange].Start(); + } +} + bool Selection::MoveExtends() const { return moveExtends; } |