mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-18 06:47:14 +09:00
Handle initialization and didOpen properly
This commit is contained in:
@@ -196,7 +196,9 @@ func (b *Buffer) saveToFile(filename string, withSudo bool) error {
|
||||
b.isModified = false
|
||||
b.UpdateRules()
|
||||
|
||||
b.server.DidSave(b.AbsPath)
|
||||
if b.HasLSP() {
|
||||
b.server.DidSave(b.AbsPath)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user