diff options
author | 2012-11-19 00:28:48 -0500 | |
---|---|---|
committer | 2012-11-19 00:28:48 -0500 | |
commit | 9cdaf41a724dd0d739611c698e92f4421a2fbafc (patch) | |
tree | e762a51e4e8e9f9d20ddd2228e81c37bc7e6b920 /modules/textadept/find.lua | |
parent | a5181b448b2d3f2d3db6dd40b40c7471602763a9 (diff) | |
download | textadept-9cdaf41a724dd0d739611c698e92f4421a2fbafc.tar.gz textadept-9cdaf41a724dd0d739611c698e92f4421a2fbafc.zip |
Changed Lua code style for tables.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r-- | modules/textadept/find.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index dee2244b..63faf80c 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -109,7 +109,7 @@ function find.find_in_files(utf8_dir) if not find.match_case then text = text:lower() end if find.whole_word then text = '%f[%w_]'..text..'%f[^%w_]' end local match_case, whole_word = find.match_case, find.whole_word - local matches = { 'Find: '..text } + local matches = {'Find: '..text} function search_file(file) local line_num = 1 for line in io.lines(file) do @@ -189,9 +189,9 @@ local function find_(text, next, flags, nowrap, wrapped) elseif flags < 16 then -- lua pattern search (forward search only) text = text:gsub('\\[abfnrtv\\]', escapes) local buffer_text = buffer:get_text(buffer.length) - local results = { buffer_text:find(text, buffer.anchor + increment + 1) } + local results = {buffer_text:find(text, buffer.anchor + increment + 1)} if #results > 0 then - find.captures = { table.unpack(results, 3) } + find.captures = {table.unpack(results, 3)} buffer:set_sel(results[2], results[1] - 1) end result = results[1] or -1 |