Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to fix statusbar indentation mode display
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff -upr a/core/ui.lua b/core/ui.lua | ||
--- a/core/ui.lua 2016-10-04 05:13:24.706406020 +0100 | ||
+++ b/core/ui.lua 2016-10-04 05:21:50.639733299 +0100 | ||
@@ -348,8 +348,9 @@ events_connect(events.UPDATE_UI, functio | ||
local col = buffer.column[pos] + 1 | ||
local lexer = buffer:private_lexer_call(GETLEXERLANGUAGE):match('^[^/]+') | ||
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 indent = buffer.indent ~= 0 and buffer.indent or buffer.tab_width | ||
+ local tabs = string.format('%s %d[%d]', buffer.use_tabs and _L['Tabs:'] or | ||
+ _L['Spaces:'], indent, buffer.tab_width) | ||
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' |