diff --git a/atuin/src/shell/atuin.bash b/atuin/src/shell/atuin.bash index ff34aea8..295ef268 100644 --- a/atuin/src/shell/atuin.bash +++ b/atuin/src/shell/atuin.bash @@ -153,7 +153,7 @@ if [[ -n "${BLE_VERSION-}" ]] && ((_ble_version >= 400)); then # function ble/complete/auto-complete/source:atuin-history { local suggestion - suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix "$_ble_edit_str") + suggestion=$(atuin search --cmd-only --limit 1 --search-mode prefix -- "$_ble_edit_str") [[ $suggestion == "$_ble_edit_str"?* ]] || return 1 ble/complete/auto-complete/enter h 0 "${suggestion:${#_ble_edit_str}}" '' "$suggestion" }