mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix(health): always set 'modifiable' #40584
Problem: When buffers are by default `nomodifiable`, such as when Nvim starts with `-M`, the health buffer cannot be updated. Solution: Always set `modifiable` before modifying the buffer.
This commit is contained in:
@@ -140,6 +140,12 @@ describe(':checkhealth', function()
|
||||
eq(true, report:find('- custom_ft:', 1, true) ~= nil)
|
||||
eq(true, report:find('- bad_ft:', 1, true) ~= nil)
|
||||
end)
|
||||
|
||||
it('renders report when Nvim starts with -M', function()
|
||||
clear { args = { '-M' } }
|
||||
command('checkhealth lsp')
|
||||
eq(true, curbuf_contents() ~= '')
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('vim.health', function()
|
||||
|
||||
Reference in New Issue
Block a user