Skip to content

Commit

Permalink
fix(entry): check for textEdit.newText for getting word
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jul 21, 2024
1 parent 76828bb commit 1199139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neocomplete/entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ end
function Entry:get_insert_word()
local completion_item = self.completion_item
local text
if completion_item.textEdit then
if completion_item.textEdit and completion_item.textEdit.newText then
text = completion_item.textEdit.newText
elseif completion_item.insertText then
text = completion_item.insertText
Expand Down

0 comments on commit 1199139

Please sign in to comment.