Example #1
0
        public void TestSubsequentUpdate()
        {
            var editor = new MonoTextEditor();

            editor.GetTextEditorData().Document.SyntaxMode = new TestSyntaxMode();
            editor.Text           = @"1
2
3
4
5";
            editor.Caret.Location = new DocumentLocation(2, 1);
            editor.InsertAtCaret("a");
            Assert.IsTrue(editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan);
            editor.InsertAtCaret("a");
            Assert.IsFalse(editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan);
        }