From 132e362f44e00cd93e04967efbfc138c53a47ee4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 27 Sep 2011 21:20:33 -0400 Subject: Reformatted some LuaDoc. --- core/gui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/gui.lua') 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) -- cgit v1.2.3