mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-25 21:39:49 +08:00
Two very minor code touch ups
darcs-hash:20070107142430-ac50b-20cd4fe96c03c052bb6fb5c07ce207a534e86498.gz
This commit is contained in:
parent
f398b2eafa
commit
63010c26ad
@ -3137,7 +3137,7 @@ int builtin_exists( wchar_t *cmd )
|
|||||||
if( wcscmp( cmd, L"count" )==0)
|
if( wcscmp( cmd, L"count" )==0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return (hash_get(&builtin, cmd) != 0 );
|
return !!hash_get(&builtin, cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1228,14 +1228,14 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp )
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
key = el+wcslen(cmd_start);
|
key = el+wcslen(cmd_start);
|
||||||
key_end = wcschr( el, L'\t' );
|
key_end = wcschr( key, L'\t' );
|
||||||
|
|
||||||
if( !key_end )
|
if( !key_end )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*key_end = 0;
|
*key_end = 0;
|
||||||
val_begin = key_end+1;
|
val_begin = key_end+1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
And once again I make sure the first character is uppercased
|
And once again I make sure the first character is uppercased
|
||||||
because I like it that way, and I get to decide these
|
because I like it that way, and I get to decide these
|
||||||
|
Loading…
x
Reference in New Issue
Block a user