Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
general: Fixed bug with early search in vim/nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 18, 2019
1 parent 776464f commit 2d8416e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,14 @@ cmd_line() {
# If there's only one search result and its a directory,
# enter it on one enter keypress.
[[ $2 == search && -d ${list[0]} ]] && ((list_total == 0)) && {
# Hide te cursor and restrict cursor position.
printf '\e[?25l\e[?6h'

open "${list[0]}"
search_end_early=1

# Unset tab completion variables since we're done.
unset comp c

printf '\e[?25l\e[?6h'
return
}

Expand Down

0 comments on commit 2d8416e

Please sign in to comment.