Correct comments

codeql
Jeremy Mahieu 5 years ago
parent 5697105264
commit 2fd9adfc9a
  1. 4
      js/inputbar.js

@ -640,8 +640,8 @@ weechat.directive('inputBar', function() {
} }
} }
$scope.command = models.getActiveBuffer().getHistoryUp($scope.command); $scope.command = models.getActiveBuffer().getHistoryUp($scope.command);
// Set cursor to last position. Need 0ms timeout because browser sets cursor // Set cursor to last position. Need 1ms (0ms works for chrome) timeout because
// position to the beginning after this key handler returns. // browser sets cursor position to the beginning after this key handler returns.
setTimeout(function() { setTimeout(function() {
if ($scope.command) { if ($scope.command) {
inputNode.setSelectionRange($scope.command.length, $scope.command.length); inputNode.setSelectionRange($scope.command.length, $scope.command.length);

Loading…
Cancel
Save