/// <summary> /// When the user click on the margin /// </summary> public static void OnSciMarginClick(SCNotification nc) { // click on the error margin if (nc.margin == FilesInfo.ErrorMarginNumber) { // if it's an error symbol that has been clicked, the error on the line will be cleared if (!FilesInfo.ClearLineErrors(Npp.LineFromPosition(nc.position))) { // if nothing has been cleared, we go to the next error position FilesInfo.GoToNextError(Npp.LineFromPosition(nc.position)); } } }
private void BtNextErrorOnButtonPressed(object sender, EventArgs buttonPressedEventArgs) { FilesInfo.GoToNextError(Npp.Line.CurrentLine + 1); }