Esempio n. 1
0
        internal override ActionResults Execute(Selection sel, params object[] args)
        {
            sel = Buffer.Selections.OrderBy(s => s.Start > s.End ? s.End : s.Start).First();
            var pos = UpCommand.MoveUp(Ed, sel);

            if (pos != sel.Caret)
            {
                var newSel = new Selection(pos);
                Buffer.Selections.Add(newSel, Ed.Document);
                newSel.SetToRestore(sel.RestoreCaretCol);
            }

            return(Clean);
        }
Esempio n. 2
0
 protected override Pos Select(Selection sel) => UpCommand.MoveUp(Ed, sel);