mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
Enable preview window for BTags
Close #195 Close #799 Close #724 Close #955
This commit is contained in:
@@ -17,9 +17,10 @@ if [[ $1 =~ ^[A-Z]:\\ ]]; then
|
||||
CENTER=${INPUT[2]}
|
||||
fi
|
||||
|
||||
if [[ ! "$CENTER" =~ ^[0-9]*$ ]]; then
|
||||
if [[ -n "$CENTER" && ! "$CENTER" =~ ^[0-9] ]]; then
|
||||
exit 1
|
||||
fi
|
||||
CENTER=${CENTER/[^0-9]*/}
|
||||
|
||||
FILE="${FILE/#\~\//$HOME/}"
|
||||
if [ ! -r "$FILE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user