diff options
author | 2013-11-07 22:59:13 -0500 | |
---|---|---|
committer | 2013-11-07 22:59:13 -0500 | |
commit | 4c01bce7d482d1f509f89e5b8304564007947a24 (patch) | |
tree | 32a50a90c0a43ac64c6c3db4aedc84ff29de9cd5 /core/ui.lua | |
parent | 82477092f0c729e06f40826a546ed56781fd805c (diff) | |
download | textadept-4c01bce7d482d1f509f89e5b8304564007947a24.tar.gz textadept-4c01bce7d482d1f509f89e5b8304564007947a24.zip |
Added support for tabs.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ui.lua b/core/ui.lua index 9a1bd5a4..03a0adcf 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -19,6 +19,9 @@ local ui = ui -- The text displayed in the buffer statusbar. -- @field maximized (bool) -- Whether or not Textadept's window is maximized. +-- @field tabs (bool) +-- Whether or not to display the tab bar when multiple buffers are open. +-- The default value is `true`. module('ui')]] local theme = package.searchpath(not CURSES and 'light' or 'term', @@ -262,6 +265,7 @@ local function set_title() local basename = buffer.filename and filename:match('[^/\\]+$') or filename ui.title = string.format('%s %s Textadept (%s)', basename, buffer.modify and '*' or '-', filename) + buffer.tab_label = basename..(buffer.modify and '*' or '') end -- Changes Textadept title to show the buffer as being "clean" or "dirty". |