From c1f943631f518390869220966cfd10dfa4278165 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 5 Sep 2013 22:13:35 -0400 Subject: Renamed `ui.docstatusbar_text` to `ui.bufstatusbar_text`. --- core/ui.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/ui.lua') 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) -- cgit v1.2.3