From 7e09a921e4c4244a4ef9956418a851efdba8fc72 Mon Sep 17 00:00:00 2001 From: Dmytro Maluka Date: Sun, 16 Jun 2024 17:53:08 +0200 Subject: [PATCH] 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. --- internal/action/actions.go | 5 ++--- runtime/help/keybindings.md | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/action/actions.go b/internal/action/actions.go index 5cbe008b..3806b348 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -1577,10 +1577,9 @@ func (h *BufPane) ToggleRuler() bool { return true } -// ClearStatus clears the messenger bar +// ClearStatus clears the infobar. It is an alias for ClearInfo. func (h *BufPane) ClearStatus() bool { - InfoBar.Message("") - return true + return h.ClearInfo() } // ToggleHelp toggles the help screen diff --git a/runtime/help/keybindings.md b/runtime/help/keybindings.md index 3198c8fb..869af62d 100644 --- a/runtime/help/keybindings.md +++ b/runtime/help/keybindings.md @@ -242,6 +242,7 @@ ToggleDiffGutter ToggleRuler JumpLine ResetSearch +ClearInfo ClearStatus ShellMode CommandMode