fix picking height as width (#157)
This commit is contained in:
@@ -140,9 +140,8 @@ layout_strategies.center = function(self, columns, lines)
|
|||||||
local prompt = initial_options.prompt
|
local prompt = initial_options.prompt
|
||||||
|
|
||||||
-- This sets the height/width for the whole layout
|
-- This sets the height/width for the whole layout
|
||||||
local height = resolve.resolve_height(self.window.results_height)(self, columns, lines)
|
local height = resolve.resolve_height(self.window.results_height)(self, lines)
|
||||||
local width = resolve.resolve_width(self.window.width)(self, columns, lines)
|
local width = resolve.resolve_width(self.window.width)(self, columns)
|
||||||
|
|
||||||
local max_results = (height > lines and lines or height)
|
local max_results = (height > lines and lines or height)
|
||||||
local max_width = (width > columns and columns or width)
|
local max_width = (width > columns and columns or width)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user