From b4a6355f508068a75a849b9e4356ffa1d0e9b7db Mon Sep 17 00:00:00 2001 From: Dave Lage Date: Sun, 4 Oct 2020 19:27:15 -0400 Subject: [PATCH] fix: Use width not results_width (#144) --- lua/telescope/pickers/layout_strategies.lua | 2 +- lua/telescope/themes.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/telescope/pickers/layout_strategies.lua b/lua/telescope/pickers/layout_strategies.lua index c3af174..4f92640 100644 --- a/lua/telescope/pickers/layout_strategies.lua +++ b/lua/telescope/pickers/layout_strategies.lua @@ -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) diff --git a/lua/telescope/themes.lua b/lua/telescope/themes.lua index e3cd0cc..1c8ddad 100644 --- a/lua/telescope/themes.lua +++ b/lua/telescope/themes.lua @@ -17,7 +17,7 @@ function themes.get_dropdown(opts) layout_strategy = "center", results_title = false, preview_title = "Preview", - results_width = 70, + width = 70, results_height = 15, borderchars = { { '─', '│', '─', '│', '╭', '╮', '╯', '╰'},