Improve comment

This commit is contained in:
Jeremy Mahieu 2020-05-14 19:50:40 +02:00
parent 73ecf2cf19
commit 1e05a2d209
1 changed files with 1 additions and 1 deletions

View File

@ -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) {