parent
38f5e998fc
commit
e53f614a04
|
@ -1233,9 +1233,12 @@ weechat.directive('inputBar', function() {
|
||||||
// get current active buffer
|
// get current active buffer
|
||||||
var activeBuffer = models.getActiveBuffer();
|
var activeBuffer = models.getActiveBuffer();
|
||||||
|
|
||||||
|
// Empty input makes $scope.command undefined -- use empty string instead
|
||||||
|
var input = $scope.command || '';
|
||||||
|
|
||||||
// complete nick
|
// complete nick
|
||||||
var nickComp = IrcUtils.completeNick($scope.command, caretPos,
|
var nickComp = IrcUtils.completeNick(input, caretPos, $scope.iterCandidate,
|
||||||
$scope.iterCandidate, activeBuffer.getNicklistByTime(), ':');
|
activeBuffer.getNicklistByTime(), ':');
|
||||||
|
|
||||||
// remember iteration candidate
|
// remember iteration candidate
|
||||||
$scope.iterCandidate = nickComp.iterCandidate;
|
$scope.iterCandidate = nickComp.iterCandidate;
|
||||||
|
|
Loading…
Reference in New Issue