Fix bug in command description lookup code causing missing descriptions when command is given with a path

darcs-hash:20061018155059-ac50b-40936e573c07deb6b159a16d843f02ed60e79b49.gz
This commit is contained in:
axel 2006-10-19 01:50:59 +10:00
parent f86f80fcd6
commit b32bbb24b9

View file

@ -1167,12 +1167,13 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp )
{
wchar_t *el = (wchar_t *)al_get( &list, i );
wchar_t *key, *key_end, *val_begin;
key = el+wcslen(cmd);
if( !el )
continue;
key = el+wcslen(cmd_start);
key_end = wcschr( el, L'\t' );
if( !key_end )
continue;