From fcd60e26dec14abd3b9f65f9f8d2b95eba6db104 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 12 Nov 2014 17:29:57 -0500 Subject: Code and documentation cleanup. --- modules/ansi_c/init.lua | 4 ++-- modules/textadept/command_entry.lua | 2 +- modules/textadept/find.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index f9661ee7..bb1af31f 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -55,8 +55,8 @@ textadept.editing.autocompleters.ansi_c = function() local name = line:match('^%S+') if name:find(name_patt) and not name:find('^!') and not list[name] then local fields = line:match(';"\t(.*)$') - if (fields:match('class:(%S+)') or fields:match('enum:(%S+)') or - fields:match('struct:(%S+)') or fields:match('typedef:(%S+)') or + if (fields:find('class:%S+') or fields:find('enum:%S+') or + fields:find('struct:%S+') or fields:find('typedef:%S+') or '') == symbol then local k = xpms[fields:sub(1, 1)] list[#list + 1] = ("%s%s%d"):format(name, sep, xpms[k]) diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index 6ad48981..b4f63458 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -186,7 +186,7 @@ end) --[[ The function below is a Lua C function. --- --- Opens the Lua command entry. +-- Opens the command entry. -- @class function -- @name focus local focus diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 8aacfcb3..738a4c81 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -226,7 +226,7 @@ function M.find_in_files(dir) dir = dir or ui.dialogs.fileselect{ title = _L['Find in Files'], select_only_directories = true, with_directory = (buffer.filename or ''):match('^.+[/\\]') or - lfs.currentdir()..'/' + lfs.currentdir() } if not dir then return end -- cgit v1.2.3