public void OnBeforeTextDelete(object sender, BeforeModificationEventArgs e) { m_NLEvent.Set((Scintilla)sender, e); if (!m_NLEvent.isEnable) { return; } Scintilla ed = (Scintilla)sender; NewLineEventArgs nlE = new NewLineEventArgs(ed, e, m_NLEvent, NewLineEventArgs.DELETE); this.NewLineChanged(ed, nlE); UtilMarker.DeletRightMarginMarker(ed); this.SideMarginPaint(ed, new EventArgs()); }
public void OnTextInserted(object sender, ModificationEventArgs e) { Scintilla ed = (Scintilla)sender; if (isFileLoading || e.LinesAdded == 0 || !m_NLEvent.isEnable) { return; } NewLineEventArgs nlE = new NewLineEventArgs(ed, e, m_NLEvent, NewLineEventArgs.INSERT); this.NewLineChanged(ed, nlE); UtilMarker.DeletRightMarginMarker(ed); this.SideMarginPaint(ed, new EventArgs()); }