diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-11-16 10:10:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-11-16 10:10:26 +0000 |
commit | 46f5e42145ed34567b29c73032adbd8a41f5dfa2 (patch) | |
tree | c084d02f1886fb187d9c34977f45f59ea3d896ab /cmd-move-window.c | |
parent | 1425738790052e53211f8c38054f49eaf54cb644 (diff) |
Keep stack of previous windows.
Check for op (orig_pair) for default colours.
Diffstat (limited to 'cmd-move-window.c')
-rw-r--r-- | cmd-move-window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-move-window.c b/cmd-move-window.c index 31694443..aca44d31 100644 --- a/cmd-move-window.c +++ b/cmd-move-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-move-window.c,v 1.1 2008-06-25 20:43:13 nicm Exp $ */ +/* $Id: cmd-move-window.c,v 1.2 2008-11-16 10:10:26 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -81,6 +81,7 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx) * if this makes it empty. */ session_alert_cancel(dst, wl_dst); + winlink_stack_remove(&dst->lastw, wl_dst); winlink_remove(&dst->windows, wl_dst); /* Force select/redraw if current. */ @@ -88,8 +89,6 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx) data->flags &= ~CMD_DFLAG; dst->curw = NULL; } - if (wl_dst == dst->lastw) - dst->lastw = NULL; } } |