mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-23 17:27:14 +09:00
Add log and plugin list command
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user