fpf-cli 1.6.42 → 1.6.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/fpf +3 -3
  2. package/package.json +1 -1
package/fpf CHANGED
@@ -3,7 +3,7 @@
3
3
  set -euo pipefail
4
4
 
5
5
  SCRIPT_NAME="fpf"
6
- SCRIPT_VERSION="1.6.42"
6
+ SCRIPT_VERSION="1.6.43"
7
7
  TMP_ROOT="${TMPDIR:-/tmp}/fpf"
8
8
  SESSION_TMP_ROOT=""
9
9
  HELP_FILE=""
@@ -2483,7 +2483,7 @@ manager_search_entries_uncached() {
2483
2483
  apt)
2484
2484
  if search_entries_from_catalog_cache "${manager}" "${effective_query}"; then
2485
2485
  :
2486
- elif search_catalog_async_prewarm_enabled; then
2486
+ elif [[ -n "${query}" ]] && search_catalog_async_prewarm_enabled; then
2487
2487
  start_search_catalog_prewarm_async "${manager}"
2488
2488
  apt-cache search -- "${effective_query}" 2>/dev/null |
2489
2489
  awk -F' - ' '{ name=$1; desc=$2; gsub(/^[[:space:]]+|[[:space:]]+$/, "", name); if (desc == "") desc="-"; print name "\t" desc }'
@@ -2551,7 +2551,7 @@ manager_search_entries_uncached() {
2551
2551
  brew)
2552
2552
  if search_entries_from_catalog_cache "${manager}" "${effective_query}"; then
2553
2553
  exact_match_entry "${manager}" "${query}"
2554
- elif search_catalog_async_prewarm_enabled; then
2554
+ elif [[ -n "${query}" ]] && search_catalog_async_prewarm_enabled; then
2555
2555
  start_search_catalog_prewarm_async "${manager}"
2556
2556
  {
2557
2557
  brew search "${effective_query}" 2>/dev/null |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fpf-cli",
3
- "version": "1.6.42",
3
+ "version": "1.6.43",
4
4
  "description": "Cross-platform fuzzy package finder powered by fzf",
5
5
  "bin": {
6
6
  "fpf": "fpf"