Skip to content

Commit

Permalink
fix adaptive diff window row on height changes
Browse files Browse the repository at this point in the history
If the diff window stack upwards, it will changes its window position
(i.e. the row) of the diff changes between the selected actions. Though
these changes got never correctly applied after the first diff window
got opened. This fix makes sure that any changes in window configuration
does take affect.
  • Loading branch information
weilbith committed Sep 26, 2021
1 parent b55e335 commit d694135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/code_action_menu/windows/base_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ function BaseWindow:open(window_configuration_options)
)
self.window_options = vim.api.nvim_win_get_config(self.window_number)
vim.api.nvim_command('doautocmd User CodeActionMenuWindowOpened')
else
vim.api.nvim_win_set_config(self.window_number, window_configuration)
end

vim.api.nvim_win_set_height(self.window_number, window_configuration.height)
end

function BaseWindow:get_option(name)
Expand Down

0 comments on commit d694135

Please sign in to comment.