diff options
| author | Dave Lage <rockerboo@gmail.com> | 2020-10-04 19:27:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-04 19:27:15 -0400 |
| commit | b4a6355f508068a75a849b9e4356ffa1d0e9b7db (patch) | |
| tree | 05f76aa2ec4f0b56702a7ddc0a7d80e9637b327c /lua | |
| parent | 90f6fee17d37f07a7c69d2d63016f29896e4c84d (diff) | |
fix: Use width not results_width (#144)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers/layout_strategies.lua | 2 | ||||
| -rw-r--r-- | 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 = { { '─', '│', '─', '│', '╭', '╮', '╯', '╰'}, |
