diff options
author | 2018-10-31 14:36:13 -0400 | |
---|---|---|
committer | 2018-10-31 14:36:13 -0400 | |
commit | 5e47de5afa99935b74c73e804ae275e8ef9f23a7 (patch) | |
tree | 9eb61b0dcd5ff58afc0206fc43625d79fc481f88 /core/ui.lua | |
parent | ed5f66599a1252279f30f3b5afe6861b147641ce (diff) |
Fixed inability to resize one split view configuration with the mouse in curses.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |