UnityEngine.TextEditor.DeleteLineBack C# (CSharp) Method

DeleteLineBack() public method

public DeleteLineBack ( ) : bool
return bool
        public bool DeleteLineBack()
        {
            if (this.hasSelection)
            {
                this.DeleteSelection();
                return true;
            }
            int cursorIndex = this.cursorIndex;
            int num2 = cursorIndex;
            while (num2-- != 0)
            {
                if (this.text[num2] == '\n')
                {
                    cursorIndex = num2 + 1;
                    break;
                }
            }
            if (num2 == -1)
            {
                cursorIndex = 0;
            }
            if (this.cursorIndex != cursorIndex)
            {
                this.m_Content.text = this.text.Remove(cursorIndex, this.cursorIndex - cursorIndex);
                int num3 = cursorIndex;
                this.cursorIndex = num3;
                this.selectIndex = num3;
                return true;
            }
            return false;
        }