diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 15:05:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-21 15:05:53 +0000 |
commit | e4f01009a3df6fa5ed231e628dcea08e7d2630e7 (patch) | |
tree | b791ff8bf102254718451558835dd18d53c61a81 /cmd-link-window.c | |
parent | ad1541913f902dad3f6c4b79543b6c380a8058fa (diff) |
Wipe curw so last doesn't end up as deleted.
Diffstat (limited to 'cmd-link-window.c')
-rw-r--r-- | cmd-link-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-link-window.c b/cmd-link-window.c index ade1fd66..331c6c45 100644 --- a/cmd-link-window.c +++ b/cmd-link-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-link-window.c,v 1.7 2007-11-17 08:21:54 nicm Exp $ */ +/* $Id: cmd-link-window.c,v 1.8 2007-11-21 15:05:53 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -147,8 +147,10 @@ cmd_link_window_exec(void *ptr, struct cmd_ctx *ctx) winlink_remove(&dst->windows, wl2); /* Force select/redraw if current. */ - if (wl2 == dst->curw) + if (wl2 == dst->curw) { data->flag_detached = 0; + dst->curw = NULL; + } if (wl2 == dst->lastw) dst->lastw = NULL; |