예제 #1
0
        public void TestInsertNewLineAtEnd()
        {
            var data = Create("foo$bar");

            MiscActions.InsertNewLineAtEnd(data);
            Check(data, "foobar" + data.EolMarker + "$");
        }
예제 #2
0
 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;
 }
예제 #3
0
 static bool Open(ViBuilderContext ctx)
 {
     ctx.RunAction((ViEditor e) => MiscActions.InsertNewLineAtEnd(e.Data));
     return(Insert(ctx));
 }
예제 #4
0
 protected override void Run()
 {
     MiscActions.InsertNewLineAtEnd(Editor);
     RequestedMode = Mode.Insert;
 }