junegunn / fzf.vim

fzf :heart: vim
MIT License
9.52k stars 582 forks source link

tagpreview: open vim in readonly mode #1488

Closed nicovince closed 12 months ago

nicovince commented 12 months ago

When computing the center line, if the file is open the vim command returns with a non-zero exit code and the return is executed. This yields a weird error message "return: can only `return'" in the preview window, even if the preview is properly displayed

junegunn commented 12 months ago

Thanks. How about also changing return to exit? Because it's clearly wrong in the context.

nicovince commented 12 months ago

Thanks. How about also changing return to exit? Because it's clearly wrong in the context.

Yes, I updated the pull request.

junegunn commented 12 months ago

Thanks.