diff options
Diffstat (limited to 'modules/ansi_c')
-rw-r--r-- | modules/ansi_c/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index 6ba97199..fff90d0f 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -31,7 +31,7 @@ textadept.editing.autocompleters.ansi_c = function() -- Retrieve the symbol behind the caret. local line, pos = buffer:get_cur_line() local symbol, op, part = line:sub(1, pos):match('([%w_]-)([%.%->]*)([%w_]*)$') - if symbol == '' and part == '' and op ~= '' then return nil end -- lone ., -> + if symbol == '' and part == '' then return nil end -- nothing to complete if op ~= '' and op ~= '.' and op ~= '->' then return nil end -- Attempt to identify the symbol type. if symbol ~= '' then |