From 33a443595f7da67f44a71e9ca798d7dcb0fe378b Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 23 Oct 2014 00:19:40 +0100 Subject: [PATCH] Recording scroll back fix, causing #608 --- client/src/models/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); } -- 2.25.1