//========================================================================================= void MoveRight(MovementType movementType, bool clearSelection) { if (this.Doc.Count == 0) { this.MoveDocHome(); return; } int iLine = this._Point.Line, iChar, iCol; string sLine = this.Doc[iLine].Text; if (this._Point.Char >= sLine.Length) { if (iLine >= this.Doc.Count - 1) { return; } iLine++; iChar = 0; } else { if (movementType == MovementType.Char) { iChar = this._Point.Char + 1; } else { iChar = WordFinder.GetNextWordStart(sLine, this._Point.Char); } } iCol = this.GetColumn(sLine, iChar); this.SetCaretPos(iLine, iChar, iCol, true, clearSelection); }