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.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 86ba64ae..7a8080bb 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -184,7 +184,10 @@ function autocomplete_word(word_chars)
buffer.target_start, buffer.target_end = match_pos + 1, buffer.length
match_pos = buffer:search_in_target(root)
end
- if #c_list > 0 then buffer:auto_c_show(#root, table.concat(c_list, ' ')) end
+ if #c_list > 0 then
+ buffer:auto_c_show(#root, table.concat(c_list, ' '))
+ return true
+ end
end
---