fix: Use width not results_width (#144)

This commit is contained in:
Dave Lage
2020-10-04 19:27:15 -04:00
committed by GitHub
parent 90f6fee17d
commit b4a6355f50
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ layout_strategies.center = function(self, columns, lines, prompt_title)
-- This sets the height/width for the whole layout
local height = resolve.resolve_height(self.window.results_height)(self, lines)
local width = resolve.resolve_width(self.window.results_width)(self, columns)
local width = resolve.resolve_width(self.window.width)(self, columns)
local max_results = (height > lines and lines or height)
local max_width = (width > columns and columns or width)