diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-02 23:01:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 23:01:48 +0800 |
commit | 269dd747b6e61842856031ca14ac26ee884ede4c (patch) | |
tree | b1c0c4f2bd6ebdab076b8b36216d26c77e77b83a /test/functional | |
parent | 3a4db8154ff043f044ab18d5fced42bffb1002fd (diff) | |
download | rneovim-269dd747b6e61842856031ca14ac26ee884ede4c.tar.gz rneovim-269dd747b6e61842856031ca14ac26ee884ede4c.tar.bz2 rneovim-269dd747b6e61842856031ca14ac26ee884ede4c.zip |
refactor(defaults)!: change default 'commentstring' value to empty (#22862)
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/api/buffer_updates_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/legacy/window_cmd_spec.lua | 1 | ||||
-rw-r--r-- | test/functional/ui/fold_spec.lua | 7 |
3 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua index 25b838a4af..80e29c1ff2 100644 --- a/test/functional/api/buffer_updates_spec.lua +++ b/test/functional/api/buffer_updates_spec.lua @@ -75,7 +75,7 @@ local function reopenwithfolds(b) local tick = reopen(b, origlines) -- use markers for folds, make all folds open by default - command('setlocal foldmethod=marker foldlevel=20') + command('setlocal foldmethod=marker foldlevel=20 commentstring=/*%s*/') -- add a fold command('2,4fold') diff --git a/test/functional/legacy/window_cmd_spec.lua b/test/functional/legacy/window_cmd_spec.lua index 0e9775060d..c7b5878b92 100644 --- a/test/functional/legacy/window_cmd_spec.lua +++ b/test/functional/legacy/window_cmd_spec.lua @@ -116,6 +116,7 @@ describe('splitkeep', function() -- oldtest: Test_splitkeep_fold() it('does not scroll when window has closed folds', function() exec([[ + set commentstring=/*%s*/ set splitkeep=screen set foldmethod=marker set number diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua index c8a3397a86..96e28c1978 100644 --- a/test/functional/ui/fold_spec.lua +++ b/test/functional/ui/fold_spec.lua @@ -2032,8 +2032,11 @@ describe("folded lines", function() end) it('multibyte fold markers work #20438', function() - meths.win_set_option(0, 'foldmethod', 'marker') - meths.win_set_option(0, 'foldmarker', '«,»') + exec([[ + setlocal foldmethod=marker + setlocal foldmarker=«,» + setlocal commentstring=/*%s*/ + ]]) insert([[ bbbbb bbbbb |