When swapping pane positions, swap the PANE_HIDDEN flag as well, otherwise tmux

crashes when trying to find the new active pane.

While here, nuke an unused pane flag.

Fixes PR 6160, reported by and a slightly different version of diff tested by
ralf.horstmann at gmx.de.
This commit is contained in:
Nicholas Marriott
2009-06-03 07:51:24 +00:00
parent 646cfa6983
commit c5dbec9e85
3 changed files with 23 additions and 4 deletions

3
tmux.h
View File

@ -589,8 +589,7 @@ struct window_pane {
int flags;
#define PANE_HIDDEN 0x1
#define PANE_RESTART 0x2
#define PANE_REDRAW 0x4
#define PANE_REDRAW 0x2
char *cmd;
char *cwd;