UnityEngine.TextEditor.MoveSelectionToAltCursor C# (CSharp) Method

MoveSelectionToAltCursor() public method

public MoveSelectionToAltCursor ( ) : void
return void
        public void MoveSelectionToAltCursor()
        {
            if (this.m_iAltCursorPos != -1)
            {
                int iAltCursorPos = this.m_iAltCursorPos;
                string selectedText = this.SelectedText;
                this.m_Content.text = this.text.Insert(iAltCursorPos, selectedText);
                if (iAltCursorPos < this.cursorIndex)
                {
                    this.cursorIndex += selectedText.Length;
                    this.selectIndex += selectedText.Length;
                }
                this.DeleteSelection();
                int num2 = iAltCursorPos;
                this.cursorIndex = num2;
                this.selectIndex = num2;
                this.ClearCursorPos();
            }
        }