Mercurial > vim
diff src/terminal.c @ 18051:d1e77015f60b v8.1.2021
patch 8.1.2021: some global functions can be local to the file
Commit: https://github.com/vim/vim/commit/840d16fd36bfd1a9fac8200e3dc016b1e3f9c328
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 10 21:27:18 2019 +0200
patch 8.1.2021: some global functions can be local to the file
Problem: Some global functions can be local to the file.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4917)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 Sep 2019 21:30:06 +0200 |
parents | 049a7481d737 |
children | 59bc3cd42cf5 |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -875,7 +875,7 @@ free_scrollback(term_T *term) // Terminals that need to be freed soon. -term_T *terminals_to_free = NULL; +static term_T *terminals_to_free = NULL; /* * Free a terminal and everything it refers to. @@ -6024,7 +6024,7 @@ conpty_term_report_winsize(term_T *term, pResizePseudoConsole(term->tl_conpty, consize); } - void + static void term_free_conpty(term_T *term) { if (term->tl_siex.lpAttributeList != NULL)