Expose OpenLogBuf to plugins

This commit is contained in:
Zachary Yedidia
2020-02-12 12:35:40 -05:00
parent 6588f02f7b
commit bf1258578c
3 changed files with 15 additions and 14 deletions

View File

@@ -106,7 +106,7 @@ func (h *BufPane) PluginCmd(args []string) {
}
if h.Buf.Type != buffer.BTLog {
OpenLogBuf(h)
h.OpenLogBuf()
}
config.PluginCommand(buffer.LogBuf, args[0], args[1:])
@@ -272,7 +272,7 @@ func (h *BufPane) OpenCmd(args []string) {
// ToggleLogCmd toggles the log view
func (h *BufPane) ToggleLogCmd(args []string) {
if h.Buf.Type != buffer.BTLog {
OpenLogBuf(h)
h.OpenLogBuf()
} else {
h.Quit()
}