From: Darren Date: Wed, 22 Oct 2014 23:19:40 +0000 (+0100) Subject: Recording scroll back fix, causing #608 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=33a443595f7da67f44a71e9ca798d7dcb0fe378b;p=KiwiIRC.git Recording scroll back fix, causing #608 --- diff --git a/client/src/models/channel.js b/client/src/models/channel.js index 4193b08..29a8dfa 100644 --- a/client/src/models/channel.js +++ b/client/src/models/channel.js @@ -99,7 +99,7 @@ _kiwi.model.Channel = _kiwi.model.Panel.extend({ // Keep the scrolback limited if (bs.length > scrollback) { - bs.splice(scrollback); + bs = _.last(bs, scrollback); } this.set({"scrollback": bs}, {silent: true}); }