mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 05:47:06 +09:00
Proper help toggle
This commit is contained in:
@@ -1001,13 +1001,17 @@ func (h *BufHandler) ClearStatus() bool {
|
||||
|
||||
// ToggleHelp toggles the help screen
|
||||
func (h *BufHandler) ToggleHelp() bool {
|
||||
h.openHelp("help")
|
||||
return true
|
||||
if h.Buf.Type == buffer.BTHelp {
|
||||
h.Quit()
|
||||
} else {
|
||||
h.openHelp("help")
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// ToggleKeyMenu toggles the keymenu option and resizes all tabs
|
||||
func (h *BufHandler) ToggleKeyMenu() bool {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
// ShellMode opens a terminal to run a shell command
|
||||
|
||||
Reference in New Issue
Block a user