Skip to content

Commit

Permalink
autoselect when there is only one option just feels weird here
Browse files Browse the repository at this point in the history
  • Loading branch information
wardwouts committed Aug 5, 2020
1 parent b0f8064 commit 0a71db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/navi.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_call_navi() {
local selected
if [ -n "$LBUFFER" ]; then
if selected="$(printf "%s" "$(navi --print query "${LBUFFER}" </dev/tty)")"; then
if selected="$(printf "%s" "$(navi --print --no-autoselect query "${LBUFFER}" </dev/tty)")"; then
LBUFFER="$selected"
fi
else
Expand Down

0 comments on commit 0a71db6

Please sign in to comment.