aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-09-27 21:20:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-09-27 21:20:33 -0400
commit132e362f44e00cd93e04967efbfc138c53a47ee4 (patch)
tree9d68dcdca8d687e922a277f137813a09d9b4b12d /core/gui.lua
parent43e9f2528415e8f2d43e7ba65f0d4c5b5d5adff4 (diff)
downloadtextadept-132e362f44e00cd93e04967efbfc138c53a47ee4.tar.gz
textadept-132e362f44e00cd93e04967efbfc138c53a47ee4.zip
Reformatted some LuaDoc.
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/gui.lua b/core/gui.lua
index d838b4ac..6c6e60ef 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -128,20 +128,20 @@ end)
connect(events.BUFFER_NEW, function() events.emit(events.UPDATE_UI) end)
-- Sets the title of the Textadept window to the buffer's filename.
--- @param buffer The currently focused buffer.
+-- @param buffer The global buffer.
local function set_title(buffer)
local filename = buffer.filename or buffer._type or L('Untitled')
gui.title = string.format('%s %s Textadept (%s)', filename:match('[^/\\]+$'),
buffer.dirty and '*' or '-', filename)
end
--- Changes Textadept title to show 'clean' buffer.
+-- Changes Textadept title to show the buffer as being "clean".
connect(events.SAVE_POINT_REACHED, function()
buffer.dirty = false
set_title(buffer)
end)
--- Changes Textadept title to show 'dirty' buffer.
+-- Changes Textadept title to show thee buffer as "dirty".
connect(events.SAVE_POINT_LEFT, function()
buffer.dirty = true
set_title(buffer)