From 2fd9adfc9ad94707885ad59bb5d6fd79f3dda6fd Mon Sep 17 00:00:00 2001 From: Jeremy Mahieu Date: Mon, 18 May 2020 21:05:01 +0200 Subject: [PATCH] Correct comments --- js/inputbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/inputbar.js b/js/inputbar.js index 304bc93..d6ea251 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -640,8 +640,8 @@ weechat.directive('inputBar', function() { } } $scope.command = models.getActiveBuffer().getHistoryUp($scope.command); - // Set cursor to last position. Need 0ms timeout because browser sets cursor - // position to the beginning after this key handler returns. + // Set cursor to last position. Need 1ms (0ms works for chrome) timeout because + // browser sets cursor position to the beginning after this key handler returns. setTimeout(function() { if ($scope.command) { inputNode.setSelectionRange($scope.command.length, $scope.command.length);