mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00: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:
parent
f86f80fcd6
commit
b32bbb24b9
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue