From 1e05a2d2090accb29fc98f3173e4ac8360d82acb Mon Sep 17 00:00:00 2001 From: Jeremy Mahieu Date: Thu, 14 May 2020 19:50:40 +0200 Subject: [PATCH] Improve comment --- js/inputbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/inputbar.js b/js/inputbar.js index 6947a05..96e4c2f 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -652,7 +652,7 @@ weechat.directive('inputBar', function() { // Arrow down -> go down in history if ($event.type === "keydown" && code === 40 && document.activeElement === inputNode) { - // In case of multiline we don't want to do this + // In case of multiline we don't want to do this unless it's the last line if ($scope.command) { caretPos = inputNode.selectionStart; if ( $scope.command.slice(caretPos).indexOf("\n") !== -1) {