Remembers current selection and restore it after Undo
Inheritance: UndoableCommand
        public override UndoableCommand Clone()
        {
            var result = new SelectCommand(ts);

            if (lastSel != null)
            {
                result.lastSel = new RangeInfo(new Range(ts.CurrentTB, lastSel.Start, lastSel.End));
            }
            return(result);
        }
Beispiel #2
0
 public override UndoableCommand Clone()
 {
     var result = new SelectCommand(ts);
     if(lastSel!=null)
         result.lastSel = new RangeInfo(new Range(ts.CurrentTB, lastSel.Start, lastSel.End));
     return result;
 }
 public override UndoableCommand Clone()
 {
     var result = new SelectCommand(Ts);
     if (LastSel != null)
         result.LastSel = new RangeInfo(new Range(Ts.CurrentTb, LastSel.Start, LastSel.End));
     return result;
 }