From d4240cac256a9fc8e49e127a602a8ec6e47ba067 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 1 May 2014 10:51:55 +1000 Subject: Consolidate insertion for paste into Editor class and perform line end conversion in Editor. --- src/Selection.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Selection.cxx') 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; } -- cgit v1.2.3