feat(options): default statusline expression #33036

Problem:
Default 'statusline' is implemented in C and not representable as
a statusline expression. This makes it hard for user configs/plugins to
extend it.

Solution:
- Change the default 'statusline' slightly to a statusline expression.
- Remove the C implementation.
This commit is contained in:
Shadman
2025-04-22 04:05:34 +06:00
committed by GitHub
parent ab72799841
commit 28e31f5d3d
23 changed files with 167 additions and 151 deletions

View File

@@ -4011,9 +4011,9 @@ stack traceback:
]]
screen:expect [[
19 |
{2:[No Name] [+] 20,1 3%}|
{2:< Name] [+] 20,1 3%}|
^19 |
{3:[No Name] [+] 20,1 3%}|
{3:< Name] [+] 20,1 3%}|
|
]]
exec_lua [[
@@ -4022,9 +4022,9 @@ stack traceback:
]]
screen:expect [[
99 |
{2:[No Name] [+] 100,1 19%}|
{2:< Name] [+] 100,1 19%}|
^19 |
{3:[No Name] [+] 20,1 3%}|
{3:< Name] [+] 20,1 3%}|
|
]]
end)