aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-10-31 14:36:13 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-10-31 14:36:13 -0400
commit5e47de5afa99935b74c73e804ae275e8ef9f23a7 (patch)
tree9eb61b0dcd5ff58afc0206fc43625d79fc481f88 /core/ui.lua
parented5f66599a1252279f30f3b5afe6861b147641ce (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.lua3
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