mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
vim-patch:8.1.0989: various small code ugliness
Problem: Various small code ugliness.
Solution: Remove pointless NULL checks. Fix function calls. Fix typos.
(Dominique Pelle, closes vim/vim#4060)
bdace838c6
This commit is contained in:
@@ -1947,13 +1947,9 @@ void free_buf_options(buf_T *buf, int free_p_ff)
|
||||
clear_string_option(&buf->b_p_flp);
|
||||
clear_string_option(&buf->b_p_isk);
|
||||
clear_string_option(&buf->b_p_vsts);
|
||||
if (buf->b_p_vsts_nopaste) {
|
||||
xfree(buf->b_p_vsts_nopaste);
|
||||
}
|
||||
xfree(buf->b_p_vsts_nopaste);
|
||||
buf->b_p_vsts_nopaste = NULL;
|
||||
if (buf->b_p_vsts_array) {
|
||||
xfree(buf->b_p_vsts_array);
|
||||
}
|
||||
xfree(buf->b_p_vsts_array);
|
||||
buf->b_p_vsts_array = NULL;
|
||||
clear_string_option(&buf->b_p_vts);
|
||||
XFREE_CLEAR(buf->b_p_vts_array);
|
||||
|
Reference in New Issue
Block a user