Merge pull request #102 from icybolts/saving-fix

fixing ismodified in while saving
This commit is contained in:
Zachary Yedidia 2016-05-15 07:57:14 -04:00
commit c79fad645c

View file

@ -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
} }