Changeset 5154

Show
Ignore:
Timestamp:
01/05/08 01:30:15 (6 months ago)
Author:
morris
Message:

Fix problem with completing in subdirectories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/wire/files.c

    r5079 r5154  
    133133                wi_release(directory_path); 
    134134                 
    135                 directory_path  = wi_retain(wi_string_by_deleting_last_path_component(path)); 
    136                 full_path               = wr_files_full_path(directory_path); 
    137                 index                   = 0; 
     135                if(wi_string_has_suffix(path, WI_STR("/"))) 
     136                        directory_path = wi_retain(path); 
     137                else 
     138                        directory_path = wi_retain(wi_string_by_deleting_last_path_component(path)); 
     139                 
     140                full_path       = wr_files_full_path(directory_path); 
     141                index           = 0; 
    138142 
    139143                wr_files_clear();