Mercurial > vim
diff src/charset.c @ 17789:0f7ae8010787 v8.1.1891
patch 8.1.1891: functions used in one file are global
commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 20:13:45 2019 +0200
patch 8.1.1891: functions used in one file are global
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 20:15:07 +0200 |
parents | 91619e48e1a7 |
children | 59f8948b7590 |
line wrap: on
line diff
--- a/src/charset.c +++ b/src/charset.c @@ -35,6 +35,8 @@ static char_u g_chartab[256]; #define CT_ID_CHAR 0x20 /* flag: set for ID chars */ #define CT_FNAME_CHAR 0x40 /* flag: set for file name chars */ +static int in_win_border(win_T *wp, colnr_T vcol); + /* * Fill g_chartab[]. Also fills curbuf->b_chartab[] with flags for keyword * characters for current buffer. @@ -1174,7 +1176,7 @@ win_nolbr_chartabsize( * Return TRUE if virtual column "vcol" is in the rightmost column of window * "wp". */ - int + static int in_win_border(win_T *wp, colnr_T vcol) { int width1; /* width of first line (after line number) */