diff options
author | axel <axel@liljencrantz.se> | 2006-11-23 20:41:45 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-11-23 20:41:45 +1000 |
commit | deed3a63a3afc5d61c11d9ce0370a3d270ab2ccd (patch) | |
tree | 81093917210a25ca20c04ab96a9466f87f224b99 /complete.c | |
parent | cab80b452bb3dbd65d5e8a1eeb869d84a7a94742 (diff) |
Make completion descriptions on symlinks to directories have their own description
darcs-hash:20061123104145-ac50b-6b48de9c46593312d9c65368d17a45999d197e4a.gz
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -96,6 +96,10 @@ */ #define COMPLETE_SYMLINK_DESC _( L"Symbolic link" ) /** + Description for symlink +*/ +#define COMPLETE_DIRECTORY_SYMLINK_DESC _( L"Symbolic link to directory" ) +/** Description for Rotten symlink */ #define COMPLETE_ROTTEN_SYMLINK_DESC _( L"Rotten symbolic link" ) @@ -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 ); |