Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Catch invalid true condition when additionalTextEdits is {}
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Poulton committed Jun 24, 2021
1 parent 5646ed6 commit c354bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ local function applyAddtionalTextEdits(completed_item)
}
})
else
if item.additionalTextEdits then
if next(item.additionalTextEdits) then
local bufnr = api.nvim_get_current_buf()
local edits = vim.tbl_filter(
function(x) return x.range.start.line ~= (lnum - 1) end,
Expand Down

0 comments on commit c354bc3

Please sign in to comment.