From 8545fc83214b8603dcf0f4d716a8b38c0c5923a8 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 18 Apr 2024 08:56:04 +0200 Subject: [PATCH] fix(ui): `float_win_config.border` not applied to code action group --- CHANGELOG.md | 7 +++++++ lua/rustaceanvim/commands/code_action_group.lua | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 725f1e27..c30b041a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.22.5] - 2024-04-18 + +### Fixed + +- UI: `float_win_config.border` not applied + to code action group windows [[#363](https://github.com/mrcjkb/rustaceanvim/issues/363)]. + ## [4.22.4] - 2024-04-15 ### Fixed diff --git a/lua/rustaceanvim/commands/code_action_group.lua b/lua/rustaceanvim/commands/code_action_group.lua index df468d98..ab6a28fa 100644 --- a/lua/rustaceanvim/commands/code_action_group.lua +++ b/lua/rustaceanvim/commands/code_action_group.lua @@ -170,7 +170,7 @@ local function on_code_action_results(results, ctx) width = M.state.primary.geometry.width, height = vim.tbl_count(M.state.actions.grouped) + vim.tbl_count(M.state.actions.ungrouped), focusable = true, - border = 'rounded', + border = config.tools.float_win_config.border, row = 1, col = 0, }) @@ -299,7 +299,7 @@ function M.on_cursor_move() width = M.state.secondary.geometry.width, height = #value.actions, focusable = true, - border = 'rounded', + border = config.tools.float_win_config.border, row = line - 2, col = M.state.primary.geometry.width + 1, })