aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 21:48:15 -0400
commit7e88330753edcf2df034e2240c2e77e1006d2e64 (patch)
tree63b7afd8d28129922e7eb5c1f64f7af9dd58813f /core/ui.lua
parent393e320d1f8170ff76fb18fca34b5dbdf36dd31f (diff)
downloadtextadept-7e88330753edcf2df034e2240c2e77e1006d2e64.tar.gz
textadept-7e88330753edcf2df034e2240c2e77e1006d2e64.zip
Moved buffer IO functions into the `io` module.
Menus and key bindings do not need `events.INITIALIZED`.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index c58be351..6e3d88ec 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -249,7 +249,6 @@ events_connect(events.BUFFER_NEW, function()
end)
-- Sets the title of the Textadept window to the buffer's filename.
--- @param buffer The global buffer.
local function set_title()
local filename = buffer.filename or buffer._type or _L['Untitled']
local basename = buffer.filename and filename:match('[^/\\]+$') or filename