aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
commitacda712a50dbebafa295ccd07ce8186d9b82aa10 (patch)
tree0ab9229205aad0ac09bcdb0e9bc71c4f1bd87168 /modules/textadept/run.lua
parent8a6341ae8db36e1b6857f90c39865d254dcdc163 (diff)
downloadtextadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.tar.gz
textadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.zip
Renamed `gui` to `ui` since it's more applicable.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 7e0dc83b..38a5e0f4 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -106,9 +106,9 @@ local MARK_ERROR = _SCINTILLA.next_marker_number()
-- @param lexer The current lexer.
-- @param output The output to print.
local function print_output(lexer, output)
- gui.print(output)
+ ui.print(output)
if get_error_details(output) then
- -- Current position is one line below the error due to gui.print()'s '\n'.
+ -- Current position is one line below the error due to ui.print()'s '\n'.
buffer:marker_add(buffer.line_count - 2, MARK_ERROR)
end
end
@@ -214,7 +214,7 @@ function M.goto_error(line, next)
if is_msg_buf(_BUFFERS[i]) then msg_buf = i break end
end
if not msg_view and not msg_buf then return end
- if msg_view then gui.goto_view(msg_view) else view:goto_buffer(msg_buf) end
+ if msg_view then ui.goto_view(msg_view) else view:goto_buffer(msg_buf) end
-- If no line was given, find the next error marker.
if not line and next ~= nil then
@@ -232,7 +232,7 @@ function M.goto_error(line, next)
local err = get_error_details(buffer:get_line(line))
if not err then if CURSES then view:goto_buffer(cur_buf) end return end
_M.textadept.editing.select_line()
- gui.goto_file(M.cwd..err.filename, true, preferred_view, true)
+ ui.goto_file(M.cwd..err.filename, true, preferred_view, true)
local line, message = err.line, err.message
buffer:goto_line(line - 1)
if message then