From: Darren Date: Thu, 6 Jun 2013 12:15:21 +0000 (+0100) Subject: Only append : to a tabbed nick if it's the first word #232 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a0720d3afa608dd40bb4220445a3053e0c0fce4;p=KiwiIRC.git Only append : to a tabbed nick if it's the first word #232 --- diff --git a/client/assets/src/views/controlbox.js b/client/assets/src/views/controlbox.js index 58c18b4..0d8d13d 100644 --- a/client/assets/src/views/controlbox.js +++ b/client/assets/src/views/controlbox.js @@ -167,6 +167,10 @@ _kiwi.view.ControlBox = Backbone.View.extend({ if (tokens[tokens.length-1] == ':') tokens.pop(); + // Only add the trailing text if not at the beginning of the line + if (tokens.length > 1) + trailing = ''; + nick = tokens[tokens.length - 1]; if (this.tabcomplete.prefix === '') {