Add log and plugin list command

This commit is contained in:
Zachary Yedidia
2019-08-05 20:43:34 -07:00
parent 7217911c3a
commit 3d40e91690
4 changed files with 72 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ import (
var (
OpenBuffers []*Buffer
LogBuf *Buffer
)
// The BufType defines what kind of buffer this is
@@ -775,3 +776,7 @@ func ParseCursorLocation(cursorPositions []string) (Loc, error) {
func (b *Buffer) Line(i int) string {
return string(b.LineBytes(i))
}
func WriteLog(s string) {
LogBuf.EventHandler.Insert(LogBuf.End(), s)
}