From b1dd947922ccc4f59ab0458ff7796eec68620383 Mon Sep 17 00:00:00 2001 From: YohananDiamond Date: Mon, 18 Dec 2023 15:34:43 -0300 Subject: [PATCH] command palette: small fix to instrument search --- src/gui/commandPalette.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/commandPalette.cpp b/src/gui/commandPalette.cpp index 98a53eb9d..f0336cb02 100644 --- a/src/gui/commandPalette.cpp +++ b/src/gui/commandPalette.cpp @@ -94,7 +94,8 @@ void FurnaceGUI::drawPalette() { paletteSearchResults.push_back(0); } for (int i=0; isong.insLen; i++) { - if (matchFuzzy(e->song.ins[i]->name.c_str(),paletteQuery.c_str())) { + String s=fmt::sprintf("%02d: %s", i, e->song.ins[i]->name.c_str()); + if (matchFuzzy(s.c_str(),paletteQuery.c_str())) { paletteSearchResults.push_back(i+1); // because over here ins=0 is 'None' } }