commit 1a988df

delthas  ·  2024-07-03 14:56:47 +0000 UTC
parent 6ed6f0b
Accept any prefix of /BUFFER as the buffer command

This will reflect the index prefix that appears when typing /b.
1 files changed,  +3, -0
+3, -0
 1@@ -977,6 +977,9 @@ func (app *App) handleInput(buffer, content string) error {
 2 	if cmdName == "" {
 3 		return fmt.Errorf("lone slash at the beginning")
 4 	}
 5+	if strings.HasPrefix("BUFFER", cmdName) {
 6+		cmdName = "BUFFER"
 7+	}
 8 
 9 	var chosenCMDName string
10 	var found bool