aboutsummaryrefslogtreecommitdiff
path: root/core/ext/command_entry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext/command_entry.lua')
-rw-r--r--core/ext/command_entry.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/ext/command_entry.lua b/core/ext/command_entry.lua
index c29a2180..296244f4 100644
--- a/core/ext/command_entry.lua
+++ b/core/ext/command_entry.lua
@@ -1,19 +1,18 @@
-- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-local textadept = _G.textadept
local locale = _G.locale
events.connect('command_entry_command',
function(command) -- execute a Lua command
local f, err = loadstring(command)
if err then error(err) end
- textadept.command_entry.focus() -- toggle focus to hide
+ gui.command_entry.focus() -- toggle focus to hide
f()
end)
events.connect('command_entry_keypress',
function(code)
- local ce = textadept.command_entry
+ local ce = gui.command_entry
local KEYSYMS = keys.KEYSYMS
if KEYSYMS[code] == 'esc' then
ce.focus() -- toggle focus to hide
@@ -32,11 +31,11 @@ events.connect('command_entry_keypress',
end
if path == 'buffer' then
if o == ':' then
- for f in pairs(textadept.buffer_functions) do
+ for f in pairs(_SCINTILLA.functions) do
if f:find('^'..prefix) then cmpls[#cmpls + 1] = f end
end
else
- for p in pairs(textadept.buffer_properties) do
+ for p in pairs(_SCINTILLA.properties) do
if p:find('^'..prefix) then cmpls[#cmpls + 1] = p end
end
end