mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor(defaults)!: change default 'commentstring' value to empty (#22862)
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user