Make debug mode flag, plugins can access logbuf

This commit is contained in:
Zachary Yedidia
2020-01-15 22:25:08 -05:00
parent fa4103f7aa
commit b3e40a2644
4 changed files with 18 additions and 2 deletions

View File

@@ -879,3 +879,8 @@ func (b *Buffer) Line(i int) string {
func WriteLog(s string) {
LogBuf.EventHandler.Insert(LogBuf.End(), s)
}
// GetLogBuf returns the log buffer
func GetLogBuf() *Buffer {
return LogBuf
}