junegunn / junegunn/fzf.vim

:History file path generation breaks when autochdir enabled

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

Description

- Category
- [x] Question
- [X] Bug
- [ ] Suggestion
- OS
- [X] Linux
- [ ] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [ ] Vim
- [X] Neovim
----
FZF is *amazing* thank you so much for all your hard work, really impressive work :)

When using `:History` with `autochdir` enabled the suggested paths are incorrect. Once I enable it all the suggestions become relative to the currently opened file, but when selecting one of those options the opened file isn't right.

Here are the repro steps
* `mkdir -p foo/`
* `echo 'this is my a file' > foo/a && echo 'this is my b file' > foo/b`
* Open `a` and `b` in vim so they are in your history
* Load the minimal vim config, and `set autochdir`
* Load the `a` file via `:History` now try to load the `b` file via `:History` it will actually open `./b` and not `./foo/b`

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.