From 1a988df7955d7648c47d28fed7735628d2a8ec26 Mon Sep 17 00:00:00 2001 From: delthas Date: Wed, 3 Jul 2024 16:56:47 +0200 Subject: [PATCH] Accept any prefix of /BUFFER as the buffer command This will reflect the index prefix that appears when typing /b. --- commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands.go b/commands.go index d3da250..40fe0d5 100644 --- a/commands.go +++ b/commands.go @@ -977,6 +977,9 @@ func (app *App) handleInput(buffer, content string) error { if cmdName == "" { return fmt.Errorf("lone slash at the beginning") } + if strings.HasPrefix("BUFFER", cmdName) { + cmdName = "BUFFER" + } var chosenCMDName string var found bool -- 2.45.2