Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Dec 28, 2020
1 parent 3c9146a commit 94b2d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/compe/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ local Helper = {}
--- datermine
Helper.datermine = function(context, option)
local trigger_character_offset = 0
if option and option and option.trigger_characters and context.before_char ~= ' ' then
if option and option.trigger_characters and context.before_char ~= ' ' then
if vim.tbl_contains(option.trigger_characters, context.before_char) then
trigger_character_offset = context.col
end
end

local keyword_pattern_offset
if option.keyword_pattern then
if option and option.keyword_pattern then
keyword_pattern_offset = Pattern.get_pattern_offset(context.before_line, option.keyword_pattern)
end

Expand Down

0 comments on commit 94b2d71

Please sign in to comment.