Fix size of rightmost preview section.
authornicm <nicm@openbsd.org>
Fri, 7 Jul 2017 16:27:26 +0000 (16:27 +0000)
committernicm <nicm@openbsd.org>
Fri, 7 Jul 2017 16:27:26 +0000 (16:27 +0000)
usr.bin/tmux/window-tree.c

index 106d909..6945981 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-tree.c,v 1.11 2017/07/04 22:21:31 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.12 2017/07/07 16:27:26 nicm Exp $ */
 
 /*
  * Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -512,7 +512,7 @@ window_tree_draw_session(struct window_tree_modedata *data, struct session *s,
                else
                        offset = (i * each);
                if (loop == end - 1)
-                       width = each - 1 + remaining;
+                       width = each + remaining;
                else
                        width = each - 1;
 
@@ -638,7 +638,7 @@ window_tree_draw_window(struct window_tree_modedata *data, struct session *s,
                else
                        offset = (i * each);
                if (loop == end - 1)
-                       width = each - 1 + remaining;
+                       width = each + remaining;
                else
                        width = each - 1;