Always have an activeBuffer

This commit is contained in:
David Cormier 2013-10-01 19:12:29 -04:00
parent f0317c505f
commit 951abf878b
1 changed files with 4 additions and 0 deletions

View File

@ -205,6 +205,10 @@ weechat.factory('handlers', ['$rootScope', 'colors', 'pluginManager', function($
bufferInfo['id'] = pointer;
bufferInfo['lines'] = [];
buffers[pointer] = bufferInfo
if (i == 0) {
// first buffer is active buffer by default
$rootScope.activeBuffer = buffers[pointer];
}
}
$rootScope.buffers = buffers;
}