From 1d63446d03b15d3275fdd47cf1cb8d0c1ce69953 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 6 Feb 2017 07:38:47 +0100 Subject: [PATCH] Final part of fix for getting two different resizes of the terminal which vim wasn't handling. --- terminatorlib/paned.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index a1a4a83d..b877654e 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -472,7 +472,7 @@ class Paned(Container): self.set_position(self.get_position()) def position_by_ratio(self, total_size, handle_size, ratio): - non_separator_size = max(total_size, handle_size, 0) + non_separator_size = max(total_size - handle_size, 0) ratio = min(max(ratio, 0.0), 1.0) return int(round(non_separator_size * ratio))