-
-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tagpreview.sh - preview not centering with error #1477
Comments
For me both with vim 9.0 and nvim 0.9.0, it just returns the number of the last line in the tags file export VIMNAME=nvim
export FILE=whatever-it-does-not-matter
export EXCMD="47 tags"
nvim -i NONE -u NONE -e -m -s "${FILE}" \
-c "set nomagic" \
-c "${EXCMD}" \
-c 'let l=line(".") | new | put =l | print | qa!'
# returns 8216, the number of lines in the `tags` file Not sure I fully understand what this command is doing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
man fzf
)When using
:Tags
, the preview window does not display the correct line number, but displays the below error.Seems that the below snippet in
tagpreview.sh
is the cause:A simple replace with the below works for me, but I am wondering the implications of this. Ie, just take the line number we already get passed in via
EXCMD
and use that for the center.CENTER=$(echo "${EXCMD}" | awk -F ' ' '{print $1}')
I can stick a PR in for this if it looks fine
The text was updated successfully, but these errors were encountered: