Migrate input_function_get_names to wcstring_list_t

This commit is contained in:
ridiculousfish
2012-01-23 20:48:47 -08:00
parent 0d1c2a3b2a
commit 4dfe36feb1
3 changed files with 7 additions and 20 deletions

View File

@@ -465,20 +465,13 @@ static void builtin_bind_key_names( int all )
*/
static void builtin_bind_function_names()
{
array_list_t lst;
int i;
wcstring_list_t names = input_function_get_names();
al_init( &lst );
input_function_get_names( &lst );
for( i=0; i<al_get_count(&lst); i++ )
for( size_t i=0; i<names.size(); i++ )
{
wchar_t *seq = (wchar_t *)al_get( &lst, i );
const wchar_t *seq = names.at(i).c_str();
sb_printf( sb_out, L"%ls\n", seq );
}
al_destroy( &lst );
}
/**