From f9b41b24b719310be756a77f9f9d49e69fa5aa72 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Thu, 7 Mar 2024 17:01:44 +0000 Subject: quit: add :q alias This used to work, but after f3a61a34 (where :query) was added, we had two commands which then started with q. So, the automatic alias stopped working. Changelog-added: Specify a ":q" alias for quit. Signed-off-by: Tristan Partin Acked-by: Moritz Poldrack Acked-by: Robin Jarry --- commands/quit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/quit.go') diff --git a/commands/quit.go b/commands/quit.go index aa996422..e17200ef 100644 --- a/commands/quit.go +++ b/commands/quit.go @@ -19,7 +19,7 @@ func (Quit) Context() CommandContext { } func (Quit) Aliases() []string { - return []string{"quit", "exit"} + return []string{"quit", "q", "exit"} } type ErrorExit int -- cgit