Changeset 4328

Show
Ignore:
Timestamp:
06/13/06 01:36:41 (2 years ago)
Author:
morris
Message:

Count multiple unique matches as one

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/English.lproj/ReleaseNotes.rtf

    r4273 r4328  
    4141- Fix disabled buttons in private chat topic dialog\ 
    4242- Fix a queueing problem where a second download transfer would be started when an upload transfer finished\ 
    43 - Fix a problem where the window layout was not saved when quitting the application 
     43- Fix a problem where the window layout was not saved when quitting the application\ 
     44- Fix a bug where completing a nick when there were multiple users with that nick would not append the completion string 
    4445\f0\b \cf2 \ 
    4546\ 
  • WiredClient/trunk/WCChat.m

    r4186 r4328  
    529529                while((match = [setEnumerator nextObject])) { 
    530530                        if([match rangeOfString:string options:NSCaseInsensitiveSearch].location == 0) { 
    531                                 if(matches == 0) 
     531                                if(matches == 0) { 
    532532                                        prefix = match; 
    533                                 else 
     533                                        matches = 1; 
     534                                } else { 
    534535                                        prefix = [prefix commonPrefixWithString:match options:NSCaseInsensitiveSearch]; 
    535536                                 
     537                                        if([prefix length] < [match length]) 
     538                                                matches++; 
     539                                } 
     540                                 
    536541                                matchingSet = set; 
    537                                 matches++; 
    538542                        } 
    539543                }