comparison 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
comparison
equal deleted inserted replaced
18050:dd9de94583a5 18051:d1e77015f60b
873 ga_clear(&term->tl_scrollback_postponed); 873 ga_clear(&term->tl_scrollback_postponed);
874 } 874 }
875 875
876 876
877 // Terminals that need to be freed soon. 877 // Terminals that need to be freed soon.
878 term_T *terminals_to_free = NULL; 878 static term_T *terminals_to_free = NULL;
879 879
880 /* 880 /*
881 * Free a terminal and everything it refers to. 881 * Free a terminal and everything it refers to.
882 * Kills the job if there is one. 882 * Kills the job if there is one.
883 * Called when wiping out a buffer. 883 * Called when wiping out a buffer.
6022 consize.X = cols; 6022 consize.X = cols;
6023 consize.Y = rows; 6023 consize.Y = rows;
6024 pResizePseudoConsole(term->tl_conpty, consize); 6024 pResizePseudoConsole(term->tl_conpty, consize);
6025 } 6025 }
6026 6026
6027 void 6027 static void
6028 term_free_conpty(term_T *term) 6028 term_free_conpty(term_T *term)
6029 { 6029 {
6030 if (term->tl_siex.lpAttributeList != NULL) 6030 if (term->tl_siex.lpAttributeList != NULL)
6031 { 6031 {
6032 pDeleteProcThreadAttributeList(term->tl_siex.lpAttributeList); 6032 pDeleteProcThreadAttributeList(term->tl_siex.lpAttributeList);