public void TestInsertNewLineAtEnd() { var data = Create("foo$bar"); MiscActions.InsertNewLineAtEnd(data); Check(data, "foobar" + data.EolMarker + "$"); }
protected override void Run() { if (Editor.Caret.Line == DocumentLocation.MinLine) { Editor.Caret.Column = 1; MiscActions.InsertNewLine(Editor); CaretMoveActions.Up(Editor); } else { CaretMoveActions.Up(Editor); MiscActions.InsertNewLineAtEnd(Editor); } RequestedMode = Mode.Insert; }
static bool Open(ViBuilderContext ctx) { ctx.RunAction((ViEditor e) => MiscActions.InsertNewLineAtEnd(e.Data)); return(Insert(ctx)); }
protected override void Run() { MiscActions.InsertNewLineAtEnd(Editor); RequestedMode = Mode.Insert; }