From b32bbb24b9b5e1a14c3f7186a2ea04aeffc1b64c Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 19 Oct 2006 01:50:59 +1000 Subject: [PATCH] Fix bug in command description lookup code causing missing descriptions when command is given with a path darcs-hash:20061018155059-ac50b-40936e573c07deb6b159a16d843f02ed60e79b49.gz --- complete.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/complete.c b/complete.c index 0f52d492c..680af7998 100644 --- a/complete.c +++ b/complete.c @@ -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;