@@ -690,7 +690,7 @@ H.keys = {
690690}
691691
692692-- Flags for whether there is support for dedicated options
693- H .has_winborder = vim .fn .has (' nvim-0.11' ) == 1
693+ H .has_no_winborder = vim .fn .has (' nvim-0.11' ) == 0
694694H .has_pumborder = vim .fn .exists (' +pumborder' ) == 1 -- Neovim>=0.12
695695
696696-- Caches for different actions -----------------------------------------------
@@ -1516,8 +1516,8 @@ H.info_window_lines = function(info_id)
15161516 -- Do nothing if completion item was changed
15171517 if H .info .id ~= info_id then return end
15181518
1519- -- Still use original item if there was error during resolve
1520- if err ~= nil then result = result or lsp_data .item end
1519+ -- Still use original item if there was no response (usually due to error)
1520+ result = result or lsp_data .item
15211521
15221522 H .info .lsp .result = result
15231523 -- - Cache resolved item to not have to send same request on revisit.
@@ -1533,7 +1533,7 @@ end
15331533
15341534H .info_window_options = function ()
15351535 local win_config = H .get_config ().window .info
1536- local default_border = (H .has_winborder and vim .o .winborder ~= ' ' ) and vim . o . winborder or ' single'
1536+ local default_border = (H .has_no_winborder or vim .o .winborder == ' ' ) and ' single' or nil
15371537 local border = win_config .border or default_border
15381538 local pumborder = H .has_pumborder and vim .o .pumborder or ' '
15391539
@@ -1709,7 +1709,7 @@ end
17091709
17101710H .signature_window_opts = function ()
17111711 local win_config = H .get_config ().window .signature
1712- local default_border = (H .has_winborder and vim .o .winborder ~= ' ' ) and vim . o . winborder or ' single'
1712+ local default_border = (H .has_no_winborder or vim .o .winborder == ' ' ) and ' single' or nil
17131713 local border = win_config .border or default_border
17141714 local lines = vim .api .nvim_buf_get_lines (H .signature .bufnr , 0 , - 1 , false )
17151715 local height , width = H .floating_dimensions (lines , win_config .height , win_config .width )
0 commit comments