1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 16:22:24 +03:00

Avoid showing <esc> in options map when it doesn't do anything

The code duplication between Escape and EscapeEnabled is unfortunate, but I
don't see a better way to solve this.
This commit is contained in:
Stefan Haller
2025-08-12 14:54:49 +02:00
parent 0af439ddf5
commit 7bf05dfca4
3 changed files with 58 additions and 7 deletions

View File

@@ -31,12 +31,12 @@ var KeybindingSuggestionsWhenSwitchingRepos = NewIntegrationTest(NewIntegrationT
t.Views().Files().Focus()
t.Views().Options().Content(
Equals("Commit: c | Stash: s | Reset: D | Keybindings: ? | Cancel: <esc>"))
Equals("Commit: c | Stash: s | Reset: D | Keybindings: ?"))
switchToRepo("other")
switchToRepo("repo")
t.Views().Options().Content(
Equals("Commit: c | Stash: s | Reset: D | Keybindings: ? | Cancel: <esc>"))
Equals("Commit: c | Stash: s | Reset: D | Keybindings: ?"))
},
})