Skip to content

[Bug] Selecting a result fails if its path contains an opening parentheses (Powershell) #1613

@cesar-bravo-m

Description

@cesar-bravo-m

Checklist

  • I have fzf 0.54.0 or later
  • I have searched through the existing issues

Output of :echo system(fzf#exec() .. ' --version')

0.71.0 (62899fd7)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Problem / Steps to reproduce

Environment

Windows 11 25H2
Vim 9.2 and Neovim 0.11.5 (happens on both)
fzf 0.68.0 (b908f7a0)
fzf.vim 0.71.0 (62899fd7)
Powershell 7.6

Description

In the results list, if the path of the selected file contains parentheses, the opened path is not the same as the real path:

Image

Pressing Enter opens a blank buffer. Running :echo expand('%:p') returns this:

Image

The path app/(tabs)/index.tsx became app(tabs)/index.tsx (a slash is missing).

This does not happen in bash:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions