Merge pull request #27764 from glepnir/grid_null

fix: set full_screen when in ex_mode
This commit is contained in:
bfredl 2024-03-09 11:52:42 +01:00 committed by GitHub
commit 9eda2f2495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -363,7 +363,7 @@ int main(int argc, char **argv)
setbuf(stdout, NULL); // NOLINT(bugprone-unsafe-functions) setbuf(stdout, NULL); // NOLINT(bugprone-unsafe-functions)
full_screen = !silent_mode; full_screen = !silent_mode || exmode_active;
// Set the default values for the options that use Rows and Columns. // Set the default values for the options that use Rows and Columns.
win_init_size(); win_init_size();

View File

@ -73,6 +73,18 @@ describe('command-line option', function()
eq(#'100500\n', attrs.size) eq(#'100500\n', attrs.size)
end) end)
it('does not crash when run completion in ex mode', function()
fn.system({
nvim_prog_abs(),
'--clean',
'-e',
'-s',
'--cmd',
'exe "norm! i\\<C-X>\\<C-V>"',
})
eq(0, eval('v:shell_error'))
end)
it('does not crash after reading from stdin in non-headless mode', function() it('does not crash after reading from stdin in non-headless mode', function()
skip(is_os('win')) skip(is_os('win'))
local screen = Screen.new(40, 8) local screen = Screen.new(40, 8)