Hide completion window earlier

This commit is contained in:
Peter Stuifzand 2020-06-09 22:57:20 +02:00
parent 09ba680f10
commit edca091108

View File

@ -77,11 +77,16 @@ function showSearchResults(searchTool, query, input, value, resultType) {
}
function showSearchResultsExtended(element, template, searchTool, query, input, value, resultType, options) {
const $lc = $(element)
let results = searchTool(query)
if (query.length === 0 || !results.length) {
$lc.fadeOut()
return
}
let opt = options || {};
const $lc = $(element)
$lc.data('result-type', resultType)
if (opt.belowCursor) {