christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Issue on tmux with base-index 1 #46

Open voanhduy1512 opened 9 years ago

voanhduy1512 commented 9 years ago

Like #42, after VtrDetachRunner, VtrOpenRunner VtrFocusRunner and VtrAttachToPane commands show error because wrong index.

christoomey commented 9 years ago

Can you confirm the version of the plugin you have? cd into ~/.vim/bundle/vim-tmux-runner and git log -1 assuming you are using Vundle or similar.

voanhduy1512 commented 9 years ago

I use latest version, install via Vundle (and tmux 1.9a stable).

 ~ git log -1
commit 515f7d8730359495c09d1a79949520a7e1f20cab
Author: Chris Toomey <chris@ctoomey.com>
Date:   Sat Feb 7 00:14:53 2015 -0500

    Prevent kill wrong background window

    Closes #37 - Check for detached window title before killing
christoomey commented 9 years ago

Hello @voanhduy1512, I'm just now re-reading your issue title and I had missed that it was the pane index that was causing this problem. I'll have to do some digging to figure out a fix, but it looks as though you found a workaround for the time being by setting pane index to the default zero based indexing? Either way, sorry for the trouble, hopefully I'll be able to sort this out soon.

voanhduy1512 commented 9 years ago

No worry, thanks :D