Interface with plugin.lua file

This commit is contained in:
Zachary Yedidia
2016-04-24 19:52:02 -04:00
parent 87d9221a73
commit e05e993e25
4 changed files with 37 additions and 4 deletions

View File

@@ -172,8 +172,8 @@ func (v *View) OpenBuffer(buf *Buffer) {
v.lastClickTime = time.Time{}
}
// Close and Re-open the current file.
func (v *View) reOpen() {
// ReOpen reloads the current buffer
func (v *View) ReOpen() {
if v.CanClose("Continue? (yes, no, save) ") {
file, err := ioutil.ReadFile(v.buf.path)
filename := v.buf.name