Commits

SirAlaran committed 933eb15

Fixed bad use of autocomplete_word again

Comments (0)

Files changed (1)

 
 	-- Do not do code completion inside of comments or strings
 	if style == 3 or style == 2 then
-		_M.textadept.editing:autocomplete_word("%w_")
+		_M.textadept.editing.autocomplete_word("%w_")
 		return
 	end
 	local symbol = getSymbol(position)
 	if symbol == nil then
-		_M.textadept.editing:autocomplete_word("%w_")
+		_M.textadept.editing.autocomplete_word("%w_")
 		return
 	end
 	print("symbol", symbol)
 		container = ""
 	end
 	if completionInfo.symbols[container] == nil then
-		_M.textadept.editing:autocomplete_word("%w_")
+		_M.textadept.editing.autocomplete_word("%w_")
 		return
 	end
 	local members = completionInfo.symbols[container]
 	if members == nil then return end
 	local completions = getCompletions(members)
 	if not completions or #completions == 0 then
-		_M.textadept.editing:autocomplete_word("%w_")
+		_M.textadept.editing.autocomplete_word("%w_")
 	return end
 	sortCompletions(completions)
 	displayCompletionList(completions, #part)