[polari/wip/raresv/nick-popover: 12/16] chatView: Add tab before the nickTag into the buffer



commit 64bc6d94ae186c950bea48cdd8dffa0992a188bc
Author: raresv <rares visalom gmail com>
Date:   Sat Aug 20 19:50:03 2016 +0300

    chatView: Add tab before the nickTag into the buffer

 src/chatView.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index a9e978c..98caf19 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -1183,7 +1183,8 @@ const ChatView = new Lang.Class({
 
                 if (needsGap)
                     tags.push(this._lookupTag('gap'));
-                this._insertWithTags(iter, message.nick + '\t', tags);
+                this._insertWithTags(iter, message.nick, tags);
+                buffer.insert(iter, '\t', -1);
             }
             state.lastNick = message.nick;
             tags.push(this._lookupTag('message'));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]