JustEnoughVi.ViMode.CaretOffEol C# (CSharp) Method

CaretOffEol() private method

private CaretOffEol ( ) : void
return void
        private void CaretOffEol()
        {
            if (AllowCaretOnEol || RequestedMode == Mode.Insert)
                return;

            var line = Editor.GetLine(Editor.Caret.Line);
            if (line.EndOffset > line.Offset && Editor.Caret.Offset == line.EndOffset)
                CaretMoveActions.Left(Editor);
        }