aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-05 22:13:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-05 22:13:35 -0400
commitc1f943631f518390869220966cfd10dfa4278165 (patch)
treed0034ae169e86f558577783a03e4fe4139dcc4b9 /core/ui.lua
parent0d09f7cdc7b8ef2ac18eb91ee07031f6a006ce5e (diff)
downloadtextadept-c1f943631f518390869220966cfd10dfa4278165.tar.gz
textadept-c1f943631f518390869220966cfd10dfa4278165.zip
Renamed `ui.docstatusbar_text` to `ui.bufstatusbar_text`.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ui.lua b/core/ui.lua
index d4743a44..d347d724 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -6,7 +6,7 @@ local ui = ui
---
-- Utilities for interacting with Textadept's user interface.
-- @field title (string, Write-only)
--- The title of the Textadept window.
+-- The title text of the Textadept window.
-- @field context_menu
-- The editor's context menu, a [`ui.menu()`](#menu).
-- This is a low-level field. You probably want to use the higher-level
@@ -15,7 +15,7 @@ local ui = ui
-- The text on the clipboard.
-- @field statusbar_text (string, Write-only)
-- The text displayed by the statusbar.
--- @field docstatusbar_text (string, Write-only)
+-- @field bufstatusbar_text (string, Write-only)
-- The text displayed by the buffer statusbar.
-- @field maximized (bool)
-- Whether or not the Textadept window is maximized.
@@ -289,7 +289,7 @@ end)
local EOLs = {_L['CRLF'], _L['CR'], _L['LF']}
local GETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[1]
--- Sets docstatusbar text.
+-- Sets buffer statusbar text.
events_connect(events.UPDATE_UI, function()
local pos = buffer.current_pos
local line, max = buffer:line_from_position(pos) + 1, buffer.line_count
@@ -301,7 +301,7 @@ events_connect(events.UPDATE_UI, function()
local enc = buffer.encoding or ''
local text = not CURSES and '%s %d/%d %s %d %s %s %s %s' or
'%s %d/%d %s %d %s %s %s %s'
- ui.docstatusbar_text = string.format(text, _L['Line:'], line, max, _L['Col:'],
+ ui.bufstatusbar_text = string.format(text, _L['Line:'], line, max, _L['Col:'],
col, lexer, eol, tabs, enc)
end)