diff options
author | 2014-05-08 06:03:30 +0000 | |
---|---|---|
committer | 2014-05-08 06:03:30 +0000 | |
commit | 8615a3a4c61c1796daf240e089d5cba2cfdcf1cc (patch) | |
tree | 531be295239fad3697b6a6e4d988f3686f1c4c31 /usr.bin/tmux/layout.c | |
parent | Handle colour 8 properly in the 256 colour palette, from Timothy Allen. (diff) | |
download | wireguard-openbsd-8615a3a4c61c1796daf240e089d5cba2cfdcf1cc.tar.xz wireguard-openbsd-8615a3a4c61c1796daf240e089d5cba2cfdcf1cc.zip |
Both the two previous ways of navigating panes by direction have
irritating flaws:
a) The old way of always using the top or left if the choice is
ambiguous is annoying when the layout is unbalanced.
b) The new way of remembering the last used pane is annoying if the
layout is balanced and the leftmost is obvious to the user (because
clearly if we go right from the top-left in a tiled set of four we want
to end up in top-right, even if we were last using the bottom-right).
So instead, use a combination of both: if there is only one possible
pane alongside the current pane, move to it, otherwise choose the most
recently used of the choice.
Diffstat (limited to 'usr.bin/tmux/layout.c')
-rw-r--r-- | usr.bin/tmux/layout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c index 55f109a5331..f7bc3c4fb53 100644 --- a/usr.bin/tmux/layout.c +++ b/usr.bin/tmux/layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout.c,v 1.21 2014/02/22 18:01:10 nicm Exp $ */ +/* $OpenBSD: layout.c,v 1.22 2014/05/08 06:03:30 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -53,7 +53,6 @@ layout_create_cell(struct layout_cell *lcparent) lc->yoff = UINT_MAX; lc->wp = NULL; - lc->lastwp = NULL; return (lc); } |