mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
vim-patch:8.2.0243: insufficient code coverage for ex_docmd.c functions
Problem: Insufficient code coverage for ex_docmd.c functions.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5618)
9f6277bdde
Cherry-pick Test_window_only() from patch 8.2.0203.
Cherry-pick a memory leak fix from patch 8.2.0399.
This commit is contained in:
@@ -908,6 +908,15 @@ int do_cmdline(char *cmdline, LineGetter fgetline, void *cookie, int flags)
|
||||
|
||||
msg_list = saved_msg_list;
|
||||
|
||||
// Cleanup if "cs_emsg_silent_list" remains.
|
||||
if (cstack.cs_emsg_silent_list != NULL) {
|
||||
eslist_T *elem, *temp;
|
||||
for (elem = cstack.cs_emsg_silent_list; elem != NULL; elem = temp) {
|
||||
temp = elem->next;
|
||||
xfree(elem);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* If there was too much output to fit on the command line, ask the user to
|
||||
* hit return before redrawing the screen. With the ":global" command we do
|
||||
|
Reference in New Issue
Block a user