Skip to content

Commit

Permalink
append “: ”to the completion nick if completing the first word in the…
Browse files Browse the repository at this point in the history
… input box
  • Loading branch information
oakkitten committed Jul 5, 2014
1 parent 90cb588 commit aeb568a
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -391,6 +391,8 @@ private void tryTabComplete() {
// get new nickname, adjust the end of the word marker
// and finally set the text and place the cursor on the end of completed word
String nick = tabCompleteMatches.get(tabCompleteIndex);
if (tabCompleteWordStart == 0)
nick += ": ";
inputBox.setText(txt.substring(0, tabCompleteWordStart) + nick + txt.substring(tabCompleteWordEnd));
tabCompleteWordEnd = tabCompleteWordStart + nick.length();
inputBox.setSelection(tabCompleteWordEnd);
Expand Down

0 comments on commit aeb568a

Please sign in to comment.