junegunn / junegunn/fzf.vim

`GFiles?` displaying weird characters after using git stash

Open
#1,227 2 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

- [x] I have fzf 0.23.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues

Given:
* windows10
* the latest versions of gvim, fzf (0.25.0), fzf/vim/fzf.vim and fzf.vim
* [this](https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096) windows configuration in order to have a default utf8 locale
* a repository that uses 4-spaces indentation style
* a git smudge/clean to have tabs indentation style

When:
* I make a change in a local git repository
* I run `:GFiles?`

`GFiles?` works as expected.

Until I run `!git stash`, `:Git stash` (through vim-fugitive) or `!git stash pop`.

Once I run these commands, the displayed output is filled with weird extra characters and broken layout.

Here are some screenshots:

Before I use a `git stash` (expected behavior). I typed `iiii` in the search bar:
![image](https://user-images.githubusercontent.com/48007894/105054756-a2db8880-5a72-11eb-8eb0-56938462512f.png)

After I used a `git stash` (actual behavior):
* I didn't type anything after `GFiles?`:
![image](https://user-images.githubusercontent.com/48007894/105054918-d3bbbd80-5a72-11eb-861a-c25696ae1e19.png)

* I typed `iiii` in the search bar:
![image](https://user-images.githubusercontent.com/48007894/105055084-f9e15d80-5a72-11eb-825c-36007205c11e.png)

When trying with this minimal vimrc (using `fzf.vim` and `fzf/plugin/fzf.vim`):
```
set nocompatible hidden laststatus=2
filetype plugin indent on
silent! language messages English_United states
```

I couldn't get a good screenshot yet. This is what I have right now with that minimal vimrc:
![image](https://user-images.githubusercontent.com/48007894/105055825-c6eb9980-5a73-11eb-99d9-c0084e5c5697.png)

**Additional notes**:
* `:GFiles`, `:Files` and other commands display correct output
* I will try to get back on this issue later in order to fill more details if needed!

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.