-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system() polluted by CursorShape termcodes with iTerm2 + tmux + fish #7067
Comments
Try disabling 'guicursor'. Do this by setting it to nothing:
I don't know why this would interfere with fzf, it seems like |
Disabling the guicursor option didn't change anything. Thanks for the effort though. |
By "didn't change anything" you mean the error message is still:
What does |
Sorry for the lack of information. The error is still the same indeed. Strange thing though. I removed neovim HEAD (brew remove neovim) and installed the latest released (0.2.0-1) to test the guicursor option with above result. Now switched back to neovim HEAD and the same error occurs using GFiles.. This is starting to get pretty weird though.
|
What is |
I Started neovim, did |
Seeing the term 'tmux' within the error i thought "Hey, let's test this without tmux" and it works though. That is probably what i did this morning with neovim 0.2.1-dev. So i updated tmux but it didn't solve anything. I might check my tmux configuration now but still, neovim still seems the only vim variant having this problem, probably because of the terminal. |
Do you set or use cursor colors? IE |
No, i don't have any of these gui settings you mentioned. You can view my dotfiles here. I tried disabling/removing the gui settings in my vimrc i have there right now but it doesn't change a thing. Of course i sourced and restarted neovim just for insurance ;) |
Fzf doesn't use Vim's built-in terminal yet, so it is not comparable. |
Does it work if you use bash instead of fish? Edit: For everything that is. So fish is not used at all in fzf |
@justinmk There's nothing extraordinary. And GFiles is basically this: git -c color.status=always status --short --untracked-files=all | fzf --ansi |
well, it has to do something with tmux since it only happens in that environment but i don't know what it is. looking at this line i presume that tmux is adding something to a command that fzf fires edit |
@kozie Did you try it with bash? I think that it might be something with fish also. So to me it seems like there is something else that is trying to influence the cursor shape by trying to send codes to iterm. iterm supports two ways of doing this. Either with the widely adoped descursor standard or with its own codes that looks like konsole cursor codes. However, tmux only supports the descursor codes. That is, it knows what to do with them and tries to do the right thing (only have the cursor changed on the pane the code is sent from). It doesn't understand the other code though. So to be able to use it and not have tmux eat it, you can wrap the code in the special Can you please try it with bash to see if your shell has anything to do with this? It would be nice to hunt down what is printing that specific code (and as i said before, I don't think it's neovim). |
I haven't tried bash yet but i think i will later today. It seems @junegunn also found another issue that seems related and also seems to be caused by fish. I might try the suggestion given there disabling the vi mode cursor and report back here. also, i agree that it doesn't seem to be neovim problem at all. |
Sorry for the late response. Had quite the busy week so not much room to do some testing for this. What i tested for now is the following:
The above all seemed to work like it should. I also tried the suggestion in the issue i mentioned in my previous message by adding the noop functions to my config.fish but that didn't fix the issue. |
Looks like a configuration issue. |
Had the exact same issue for ages (with a variety of other stuff also breaking such as opening of commits via :Gblame) without a solution. Finally found a workaround over here (turns out it can be fixed via the fish shell config): junegunn/fzf#881 (comment) |
nvim --version
: 0.2.0-1$TERM
: xterm-256color (using tmux)I know it's weird to post the issue over here since i only seem to have an issue with this one plugin but since it only occurs on a particular neovim version (0.2.0-1) it's hard to say it's the plugin being the problem.
When running the command
:GFiles
from (fzf.vim) i get the following error:See my original issue.
The text was updated successfully, but these errors were encountered: