Skip to content

Commit 7e09a92

Browse files
committed
Make it clear that ClearStatus is the same as ClearInfo
ClearInfo and ClearStatus actions do exactly the same thing. Let's keep them both, for compatibility reasons (who knows how many users are using either of the two), but at least document that there is no difference between the two.
1 parent e2e8baf commit 7e09a92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/action/actions.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,10 +1577,9 @@ func (h *BufPane) ToggleRuler() bool {
15771577
return true
15781578
}
15791579

1580-
// ClearStatus clears the messenger bar
1580+
// ClearStatus clears the infobar. It is an alias for ClearInfo.
15811581
func (h *BufPane) ClearStatus() bool {
1582-
InfoBar.Message("")
1583-
return true
1582+
return h.ClearInfo()
15841583
}
15851584

15861585
// ToggleHelp toggles the help screen

runtime/help/keybindings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ ToggleDiffGutter
242242
ToggleRuler
243243
JumpLine
244244
ResetSearch
245+
ClearInfo
245246
ClearStatus
246247
ShellMode
247248
CommandMode

0 commit comments

Comments
 (0)