Changeset 5161

Show
Ignore:
Timestamp:
01/12/08 16:33:31 (8 months ago)
Author:
morris
Message:

Fix some bugs with completion

Files:

Legend:

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

    r5154 r5161  
    146146        } 
    147147 
    148         name = wi_string_last_path_component(path); 
     148        if(wi_string_has_suffix(path, WI_STR("/"))) 
     149                name = WI_STR(""); 
     150        else 
     151                name = wi_string_last_path_component(path); 
     152         
    149153        root = wi_is_equal(name, WI_STR("/")); 
    150154        count = wi_array_count(wr_files); 
  • wire/trunk/wire/terminal.c

    r5079 r5161  
    457457 
    458458        for(i = 0; *text && i < bytes; i++) { 
    459                 if(isspace(*text)
     459                if(isspace(*text) || *text == '\"' || *text == '\''
    460460                        value[i++] = '\\'; 
    461461