From 2d8416e89f664e5501e7ab4fc34ea2c7760c29b7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 18 Jan 2019 08:49:51 +0200 Subject: [PATCH] general: Fixed bug with early search in vim/nvim --- fff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fff b/fff index 8276be1..33b3bcc 100755 --- a/fff +++ b/fff @@ -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 }