mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-22 16:57:12 +09:00
Make debug mode flag, plugins can access logbuf
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user