junegunn / junegunn/fzf.vim

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

Open
#1,613 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

### Checklist

- [x] I have fzf 0.54.0 or later
- [x] I have searched through the existing issues

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

0.71.0 (62899fd7)

### OS

- [ ] Linux
- [ ] macOS
- [x] 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.