We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3248543 commit 3ca72f9Copy full SHA for 3ca72f9
src/tools/ecode/commandpalette.cpp
@@ -7,6 +7,9 @@ CommandPalette::build( const std::vector<std::string>& commandList,
7
const EE::UI::KeyBindings& keybindings ) {
8
std::vector<std::vector<std::string>> ret;
9
for ( const auto& cmd : commandList ) {
10
+ if ( std::find_if( ret.begin(), ret.end(),
11
+ [&cmd]( const auto& other ) { return other[2] == cmd; } ) != ret.end() )
12
+ continue;
13
std::string cmdName( cmd );
14
String::capitalizeInPlace( cmdName );
15
String::replaceAll( cmdName, "-", " " );
0 commit comments