From 5e47de5afa99935b74c73e804ae275e8ef9f23a7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 31 Oct 2018 14:36:13 -0400 Subject: Fixed inability to resize one split view configuration with the mouse in curses. --- core/ui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/ui.lua b/core/ui.lua index fa2e6b67..0b227995 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -479,7 +479,8 @@ if CURSES then resize = nil else resize = function(y2, x2) - view[1].size = view.size + (view.vertical and x2 - x or y2 - y) + local i = getmetatable(view[1]) == getmetatable(_G.view) and 1 or 2 + view[i].size = view.size + (view.vertical and x2 - x or y2 - y) end end elseif resize then -- cgit v1.2.3