From deed3a63a3afc5d61c11d9ce0370a3d270ab2ccd Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 23 Nov 2006 20:41:45 +1000 Subject: [PATCH] Make completion descriptions on symlinks to directories have their own description darcs-hash:20061123104145-ac50b-6b48de9c46593312d9c65368d17a45999d197e4a.gz --- complete.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/complete.c b/complete.c index caaabf3bd..f3a63cd34 100644 --- a/complete.c +++ b/complete.c @@ -95,6 +95,10 @@ Description for symlink */ #define COMPLETE_SYMLINK_DESC _( L"Symbolic link" ) +/** + Description for symlink +*/ +#define COMPLETE_DIRECTORY_SYMLINK_DESC _( L"Symbolic link to directory" ) /** Description for Rotten symlink */ @@ -980,7 +984,7 @@ const wchar_t *complete_get_desc( const wchar_t *filename ) { if( S_ISDIR(buf2.st_mode) ) { - sb_printf( get_desc_buff, L"/%lc%ls", COMPLETE_SEP, COMPLETE_SYMLINK_DESC ); + sb_printf( get_desc_buff, L"/%lc%ls", COMPLETE_SEP, COMPLETE_DIRECTORY_SYMLINK_DESC ); } else if( waccess( filename, X_OK ) == 0 ) sb_printf( get_desc_buff, L"%lc%ls", COMPLETE_SEP, COMPLETE_EXEC_LINK_DESC );