mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Merge pull request #102 from icybolts/saving-fix
fixing ismodified in while saving
This commit is contained in:
commit
c79fad645c
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ func (b *Buffer) SaveAs(filename string) error {
|
||||||
data := []byte(b.String())
|
data := []byte(b.String())
|
||||||
err := ioutil.WriteFile(filename, data, 0644)
|
err := ioutil.WriteFile(filename, data, 0644)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
b.IsModified = true
|
b.IsModified = false
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue