Fix bug when opening file on launch

This commit is contained in:
bloeys
2023-02-03 02:51:53 +04:00
parent b0733e9a0c
commit cf20686a43
2 changed files with 11 additions and 17 deletions

View File

@ -496,6 +496,8 @@ func NewEditor(fPath string) *Editor {
FilePath: fPath,
FileContents: string(b),
}
e.RefreshFontSettings()
e.LinesHead, e.LineCount = ParseLines(e.FileContents)
return e
}