diff options
author | 2011-09-27 21:20:33 -0400 | |
---|---|---|
committer | 2011-09-27 21:20:33 -0400 | |
commit | 132e362f44e00cd93e04967efbfc138c53a47ee4 (patch) | |
tree | 9d68dcdca8d687e922a277f137813a09d9b4b12d /core/gui.lua | |
parent | 43e9f2528415e8f2d43e7ba65f0d4c5b5d5adff4 (diff) | |
download | textadept-132e362f44e00cd93e04967efbfc138c53a47ee4.tar.gz textadept-132e362f44e00cd93e04967efbfc138c53a47ee4.zip |
Reformatted some LuaDoc.
Diffstat (limited to 'core/gui.lua')
-rw-r--r-- | core/gui.lua | 6 |
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) |