Skip to content
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

First keystroke randomly ignored on switching windows #160

Open
adamgotterer opened this issue Nov 16, 2016 · 6 comments
Open

First keystroke randomly ignored on switching windows #160

adamgotterer opened this issue Nov 16, 2016 · 6 comments

Comments

@adamgotterer
Copy link

adamgotterer commented Nov 16, 2016

tmux: 2.3
iterm: 3.0.10
neovim: 0.1.6
osx: 10.11.5

When I switch from a window to a bash prompt the first keystroke in the prompt is ignored. The second and all subsequent keys work as expected. Switching back and forth between windows will cause randomly failures of the first keystroke (seems to only happen when going into a bash prompt). Sometimes it will happen multiple times in a row and other times not at all. I've experienced this happening when switching from neovim to bash and from a docker shell to bash.

@adamgotterer adamgotterer changed the title First keystroke randomly ignored on switching from neovim to bash First keystroke randomly ignored on switching windows Nov 16, 2016
@k4nar
Copy link

k4nar commented Sep 28, 2017

For some reason, I had this issue when using tmux-sensible. Deactivating the plugin seems to solve it.

@christoomey
Copy link
Owner

Hmmm, interesting. Thanks for sharing the note re: tmux-sensible @k4nar. I did a quick scan and nothing obvious stood out to me, but I'll keep this issue open in case anyone can add more detail / as a reminder to me to look into this more.

@k4nar
Copy link

k4nar commented Sep 28, 2017

Actually I think that my issue is that tmux-sensible sets tmux set-option -s escape-time 0, and I'm using M-<key> for moving windows, but the Alt key is considered as the escape key. So as far as I can tell it has nothing to do with vim-tmux-navigator directly.

@adamgotterer
Copy link
Author

I still have this problem. I've tried a few times to get to the bottom of it, but haven't been able to get any real answers. But the only tmux plugins I have installed are:

tmux-plugins/tmux-yank
tmux-plugins/tmux-copycat
christoomey/vim-tmux-navigator
tmux-plugins/tmux-resurrect

It's been awhile since I've dug in, but I think I disabled all my plugins besides tmux-navigator, which is why I posted this bug here in the first place.

I recorded all key presses to a log while trying to reproduce, but everything looked normally. Does anyone have any suggestions for maybe debugging this further?

@masylum
Copy link

masylum commented Apr 18, 2020

I have the same exact issue. I've tried desactivating all plugins with no success. It only happens with <C-h>.

@masylum
Copy link

masylum commented Apr 18, 2020

I've even commented out everything in .tmux.conf and same issue :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants