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 -- This sets the height/width for the whole layout
local height = resolve.resolve_height(self.window.results_height)(self, lines) 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_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)

View File

@@ -17,7 +17,7 @@ function themes.get_dropdown(opts)
layout_strategy = "center", layout_strategy = "center",
results_title = false, results_title = false,
preview_title = "Preview", preview_title = "Preview",
results_width = 70, width = 70,
results_height = 15, results_height = 15,
borderchars = { borderchars = {
{ '', '', '', '', '', '', '', ''}, { '', '', '', '', '', '', '', ''},