diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-06-15 05:46:43 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-06-16 19:04:34 +0200 |
commit | ad70c9892d5b5ebcc106742386c99524f074bcea (patch) | |
tree | 13ef468ac927d78a1f35fbdf01ffc6a2e2ba914f /test/functional/api/vim_spec.lua | |
parent | 114197517f89de557333dbc6022912b2f8b4eaf5 (diff) | |
download | rneovim-ad70c9892d5b5ebcc106742386c99524f074bcea.tar.gz rneovim-ad70c9892d5b5ebcc106742386c99524f074bcea.tar.bz2 rneovim-ad70c9892d5b5ebcc106742386c99524f074bcea.zip |
feat(column)!: rework 'statuscolumn' %r/l items
Problem: A custom 'statuscolumn' needs to check a bunch of options and
placed signs to replicate the default number column.
Solution: Rework %l item to include the necessary logic to mimic the
default number column. Remove now redundant %r item.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index b32f2b1cb2..d28064447c 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -3887,11 +3887,11 @@ describe('API', function() )) eq( { - str = '3 ', - width = 2, + str = ' 3 ', + width = 9, highlights = { { group = 'LineNr', start = 0 }, - { group = 'ErrorMsg', start = 1 }, + { group = 'ErrorMsg', start = 8 }, }, }, api.nvim_eval_statusline('%l%#ErrorMsg# ', { use_statuscol_lnum = 3, highlights = true }) |