Ticket #349 (new Defect)

Opened 6 years ago

Last modified 3 years ago

Tab completion adds extra colon when one candidate's name is completed

Reported by: Darien Owned by: timothy
Priority: Normal Milestone: Colloquy 2.4
Component: Colloquy (Mac) Version: Latest Nightly
Severity: Minor Keywords: tab completion nicknames colon
Cc:

Description

When there are multiple similar nicknames (for example Darien and Darien_iBook) and one of them is typed into the text box fully before the tab completion is triggered (for example, 'Darien' is typed), then each successive 'tab' will simply add another : to the text input.

In the above example, typing 'Darien<tab><tab><tab>' will result in the input box containing 'Darien:::' with the final : selected.

Attachments

MVTextView.diff (290 bytes) - added by loudambiance 3 years ago.
diff file

Change History

Changed 5 years ago by akempgen

#289 is related

Changed 3 years ago by Rinoa

  • milestone set to Colloquy 2.3

Changed 3 years ago by loudambiance

Possible solution (diff of MVTextView.m):
365,371d364
< if ( [possibleNicks containsObject:partialCompletion] ){
< NSRange possibleNicksRange;
< possibleNicksRange.location = 1;
< possibleNicksRange.length = [possibleNicks count] - 1;
< possibleNicks = [possibleNicks subarrayWithRange:possibleNicksRange];
< }
<

Changed 3 years ago by loudambiance

diff file

Note: See TracTickets for help on using tickets.