[PATCH 0/2] winlink alert improvements

2012-06-17 Thread Thomas Adam
Hi, I've had these two patches kicking around for a while, so I've cleaned them up and shoved them here for review. [1/2]: Simplify server_window_check_bell() This patch simplifies the code for window bell checks. Previously, the case statement which differentiated the different bell types

[PATCH 1/2] Simplify server_window_check_bell()

2012-06-17 Thread Thomas Adam
Rather than duplicating the same logic between monitoring bells in all or the current window, instead centralise the logic of looping over all windows, and for the purposes of rendering visual-* alerts, only check the bell type at that point, and print the appropriate message. ---

[PATCH v2 2/2] Clear WINLINK_ALERTFLAGS across all sessions

2012-06-17 Thread Thomas Adam
When a winlink is linked in to multiple sessions, make the alert appear across all sessions where that winlink is linked to, and on clearing it, ensure *all* instances of that alert are cleared. --- V2: Clear more window-flags than just WINDOW_BELL. trunk/server-window.c | 11 ---

tmux segfaults after suspension to ram

2012-06-17 Thread Giorgio Lando
Hi, in many occasions, after resuming from suspension to ram, the tmux server suddenly segfaults for me. The segfault happens quite randomly, but a way to reproduce it is the following: 1) I start tmux; 2) I launch mutt with the following key binding defined in my tmux.conf: bind p neww -k -t:6

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Giorgio Lando
On Sun, Jun 17, 2012, at 08:46 PM, Giorgio Lando wrote: 1) I start tmux; 2) I launch mutt with the following key binding defined in my tmux.conf: bind p neww -k -t:6 'mutt' 3) I suspend my laptop to ram; 4) I relaunch mutt with that same keybinding. Sorry to correct myself so soon, but it

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Thomas Adam
Hi, On 17 June 2012 22:50, Giorgio Lando la...@imap.cc wrote: On Sun, Jun 17, 2012, at 08:46 PM, Giorgio Lando wrote: 1) I start tmux; 2) I launch mutt with the following key binding defined in my tmux.conf: bind p neww -k -t:6 'mutt' 3) I suspend my laptop to ram; 4) I relaunch mutt with

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Thomas Adam
On Sun, Jun 17, 2012 at 10:53:54PM +0100, Thomas Adam wrote: Hi, On 17 June 2012 22:50, Giorgio Lando la...@imap.cc wrote: On Sun, Jun 17, 2012, at 08:46 PM, Giorgio Lando wrote: 1) I start tmux; 2) I launch mutt with the following key binding defined in my tmux.conf: bind p neww -k

Re: tmux segfaults after suspension to ram

2012-06-17 Thread Giorgio Lando
On Sun, Jun 17, 2012, at 11:00 PM, Thomas Adam wrote: OK, I had to do a few things differently to you. Does the following help? diff --git a/trunk/cmd.c b/trunk/cmd.c index 7aefeff..09b4922 100644 --- a/trunk/cmd.c +++ b/trunk/cmd.c @@ -1303,7 +1303,7 @@ cmd_get_default_path(struct