812
813
switch (selection.SelectionMode) {
813
814
case SelectionMode.Normal:
814
815
var segment = selection.GetSelectionRange (this);
817
816
int len = System.Math.Min (segment.Length, Document.TextLength - segment.Offset);
819
821
Remove (segment.Offset, len);
821
824
case SelectionMode.Block:
822
825
DocumentLocation visStart = LogicalToVisualLocation (selection.Anchor);