Quick error fix

This commit is contained in:
KillzXGaming 2021-11-02 18:53:59 -04:00
parent df1989236a
commit 2c6ba2f1bb

View file

@ -22,6 +22,8 @@ namespace Toolbox.Library.Forms
return new List<IFileFormat>() { FileFormat };
}
public EventHandler TextEditorChanged;
public void BeforeFileSaved() { }
FindReplace findReplaceDialog;
@ -331,6 +333,8 @@ namespace Toolbox.Library.Forms
private int maxLineNumberCharLength;
private void scintilla1_TextChanged(object sender, EventArgs e)
{
TextEditorChanged?.Invoke(sender, e);
// Did the number of characters in the line number display change?
// i.e. nnn VS nn, or nnnn VS nn, etc...
var maxLineNumberCharLength = scintilla1.Lines.Count.ToString().Length;