mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user