示例#1
0
 public void Execute(object arg)
 {
     TextArea ta;
     if (( ta = arg as TextArea) != null){
         IViCommand rep = new CmdRepeatReplaceString( ta.Selection.Length );
         ViSDGlobalText.UpdateMove( rep, arg );
         ta.Selection.ReplaceSelectionWithText(ta, "");
         ViSDGlobalState.State = State.Insert;
     }
 }
示例#2
0
        public void Execute(object arg)
        {
            TextArea ta;

            if ((ta = arg as TextArea) != null)
            {
                IViCommand rep = new CmdRepeatReplaceString(ta.Selection.Length);
                ViSDGlobalText.UpdateMove(rep, arg);
                ta.Selection.ReplaceSelectionWithText(ta, "");
                ViSDGlobalState.State = State.Insert;
            }
        }