Always have an activeBuffer
This commit is contained in:
parent
f0317c505f
commit
951abf878b
@ -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…
Reference in New Issue
Block a user