From 589db5e69472a5fd731577ef426b26aa3a9f025b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 4 Aug 2020 18:45:42 -0400 Subject: Try to avoid using `lexer` as a string, as it overshadows the `lexer` module. --- core/ui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index a9c4618e..b971236f 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -331,13 +331,13 @@ events_connect(events.UPDATE_UI, function(updated) local pos = buffer.selection_n_caret[buffer.main_selection] local line, max = buffer:line_from_position(pos), buffer.line_count local col = buffer.column[pos] - local lexer = buffer:get_lexer() + local lang = buffer:get_lexer() local eol = buffer.eol_mode == buffer.EOL_CRLF and _L['CRLF'] or _L['LF'] local tabs = string.format( '%s %d', buffer.use_tabs and _L['Tabs:'] or _L['Spaces:'], buffer.tab_width) local enc = buffer.encoding or '' ui.buffer_statusbar_text = string.format( - text, _L['Line:'], line, max, _L['Col:'], col, lexer, eol, tabs, enc) + text, _L['Line:'], line, max, _L['Col:'], col, lang, eol, tabs, enc) end) -- Save buffer properties. -- cgit v1.2.3