private void OnViewerEditorCaretPositionChanged(object sender, EventArgs e) { if (m_AppSettings.SynchronizeCursorPositions) { MainGherkinEditor.ScrollCursorTo(ViewerEditor.TextArea.Caret.Offset, focus: false); SubGherkinEditor.ScrollCursorTo(ViewerEditor.TextArea.Caret.Offset, focus: false); } }
public void ScrollCursorTo(int line, int column) { MainGherkinEditor.ScrollCursorTo(line, column); }