Merge pull request #189 from onodera-punpun/sudosave

bindings:go: Only display saved message if actually saved
This commit is contained in:
Zachary Yedidia 2016-06-30 11:08:12 -04:00 committed by GitHub
commit cb238db307

View file

@ -749,10 +749,10 @@ func (v *View) Save() bool {
messenger.Error(err.Error())
return false
}
messenger.Message("Saved " + v.Buf.Path)
}
messenger.Reset()
messenger.Clear()
messenger.Message("Saved " + v.Buf.Path)
} else {
messenger.Error(err.Error())
}