Always have an activeBuffer
This commit is contained in:
parent
f0317c505f
commit
951abf878b
1 changed files with 4 additions and 0 deletions
|
@ -205,6 +205,10 @@ weechat.factory('handlers', ['$rootScope', 'colors', 'pluginManager', function($
|
||||||
bufferInfo['id'] = pointer;
|
bufferInfo['id'] = pointer;
|
||||||
bufferInfo['lines'] = [];
|
bufferInfo['lines'] = [];
|
||||||
buffers[pointer] = bufferInfo
|
buffers[pointer] = bufferInfo
|
||||||
|
if (i == 0) {
|
||||||
|
// first buffer is active buffer by default
|
||||||
|
$rootScope.activeBuffer = buffers[pointer];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$rootScope.buffers = buffers;
|
$rootScope.buffers = buffers;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue