diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/listlbr_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/listlbr_spec.lua')
-rw-r--r-- | test/functional/legacy/listlbr_spec.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/functional/legacy/listlbr_spec.lua b/test/functional/legacy/listlbr_spec.lua index d8821417b9..fb5fb24380 100644 --- a/test/functional/legacy/listlbr_spec.lua +++ b/test/functional/legacy/listlbr_spec.lua @@ -57,7 +57,9 @@ describe('listlbr', function() feed_command('let line=ScreenChar(winwidth(0))') feed_command('call DoRecordScreen()') - feed_command('let g:test ="Test 4: set linebreak with tab and 1 line as long as screen: should break!"') + feed_command( + 'let g:test ="Test 4: set linebreak with tab and 1 line as long as screen: should break!"' + ) feed_command('set nolist linebreak ts=8') feed_command([[let line="1\t".repeat('a', winwidth(0)-2)]]) feed_command('$put =line') @@ -71,7 +73,9 @@ describe('listlbr', function() feed_command('$') feed_command('norm! zt') - feed_command('let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"') + feed_command( + 'let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"' + ) feed_command('set cpo&vim list linebreak conceallevel=2 concealcursor=nv listchars=tab:ab') feed_command('syn match ConcealVar contained /_/ conceal') feed_command('syn match All /.*/ contains=ConcealVar') @@ -201,9 +205,9 @@ describe('listlbr', function() it('cursor position is drawn correctly after operator', function() local screen = Screen.new(60, 6) screen:set_default_attr_ids({ - [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText - [1] = {background = Screen.colors.LightGrey}, -- Visual - [2] = {background = Screen.colors.Red, foreground = Screen.colors.White}, -- ErrorMsg + [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText + [1] = { background = Screen.colors.LightGrey }, -- Visual + [2] = { background = Screen.colors.Red, foreground = Screen.colors.White }, -- ErrorMsg }) screen:attach() |