summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/provider/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua
index 227964b3..92546571 100644
--- a/script/provider/completion.lua
+++ b/script/provider/completion.lua
@@ -6,8 +6,8 @@ local config = require 'config'
local isEnable = false
local function allWords()
- local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=-{ ]]
- local list = {'\t', '\n'}
+ local str = '\t\n.:(\'"[,#*@|=-{ '
+ local list = {}
for c in str:gmatch '.' do
list[#list+1] = c
end