Re: [PATCH 1/1] neww: Check indexes before window names

2014-12-01 Thread Thomas Adam
On 1 December 2014 at 23:57, Thomas Adam wrote: > In the case of creating a new window, tmux would end up checking the window > name > before the index. This is usually OK, save for the fact that if a window ever > has as its title, the same number as the index, then the check is in error. > > I

[PATCH 1/1] neww: Check indexes before window names

2014-12-01 Thread Thomas Adam
In the case of creating a new window, tmux would end up checking the window name before the index. This is usually OK, save for the fact that if a window ever has as its title, the same number as the index, then the check is in error. Instead, make cmd_lookup_index() check the index and then the