aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 069135b2..972b52d8 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -136,7 +136,7 @@ function autocomplete_word_from_dict(dict)
if not f then return end
local c_list = {}
for line in f:lines() do
- if line:match('^'..root) then c_list[#c_list + 1] = line end
+ if line:find('^'..root) then c_list[#c_list + 1] = line end
end
f:close()
if #c_list > 0 then buffer:auto_c_show(#root, table.concat(c_list, ' ')) end