From 915d0d5d3eed4ce3e1cbd60e2b50a95592ed9c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sat, 18 Mar 2017 17:04:37 +0100 Subject: [PATCH] Reset search state when initiating jump --- js/inputbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/inputbar.js b/js/inputbar.js index 8a0de77..8cefb1c 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -409,6 +409,8 @@ weechat.directive('inputBar', function() { // Alt+J -> Jump to buffer if ($event.altKey && (code === 106 || code === 74)) { $event.preventDefault(); + // reset search state and show jump keys + $scope.$parent.search = ''; $rootScope.showJumpKeys = true; return true; }