diff options
author | 2012-06-02 06:30:04 -0400 | |
---|---|---|
committer | 2012-06-02 06:30:04 -0400 | |
commit | fdb9f5bcfd77684225b78a2af4c3ba9bb4549b15 (patch) | |
tree | 44b139028163ce886ec20a2eea695c1ce383af1c /core/gui.lua | |
parent | 0905cd65f9dd7509ee059a35cc156af7cfc543dc (diff) | |
download | textadept-fdb9f5bcfd77684225b78a2af4c3ba9bb4549b15.tar.gz textadept-fdb9f5bcfd77684225b78a2af4c3ba9bb4549b15.zip |
Use different docstatusbar text format for ncurses; core/gui.lua
Diffstat (limited to 'core/gui.lua')
-rw-r--r-- | core/gui.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/gui.lua b/core/gui.lua index 97cc481a..8abe74f4 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -340,9 +340,10 @@ events_connect(events.UPDATE_UI, function() local tabs = string_format('%s %d', buffer.use_tabs and _L['Tabs:'] or _L['Spaces:'], buffer.indent) local enc = buffer.encoding or '' - gui.docstatusbar_text = - string_format('%s %d/%d %s %d %s %s %s %s', _L['Line:'], - line, max, _L['Col:'], col, lexer, eol, tabs, enc) + local text = not NCURSES and '%s %d/%d %s %d %s %s %s %s' or + '%s %d/%d %s %d %s %s %s %s' + gui.docstatusbar_text = string_format(text, _L['Line:'], line, max, + _L['Col:'], col, lexer, eol, tabs, enc) end) -- Toggles folding. |