mirror of
https://github.com/neovim/neovim.git
synced 2026-05-01 03:24:49 +00:00
perf(column): only build fold/sign column when present in 'statuscolumn'
Problem: The fold and sign column is built and stored regardless of
whether the corresponding item is present in 'statuscolumn'.
Solution: Since the 'statuscolumn' parses itself, we can defer
building the columns until the corresponding item is
actually encountered.
This commit is contained in:
@@ -456,7 +456,7 @@ describe('statuscolumn', function()
|
||||
14 aaaaa |
|
||||
|
|
||||
]])
|
||||
command('set stc=') -- also for the default sign column
|
||||
command('set stc=') -- also for the default fold column
|
||||
screen:expect_unchanged()
|
||||
-- 'statuscolumn' is not too wide with custom (bogus) fold column
|
||||
command([[set stc=%{foldlevel(v:lnum)>0?repeat('-',foldlevel(v:lnum)):''}%=%l\ ]])
|
||||
|
||||
Reference in New Issue
Block a user