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 #4840)
diff --git a/src/spell.c b/src/spell.c
index 83c232c..cf2efe8 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -338,6 +338,7 @@
static void clear_midword(win_T *buf);
static void use_midword(slang_T *lp, win_T *buf);
static int find_region(char_u *rp, char_u *region);
+static int spell_iswordp_nmw(char_u *p, win_T *wp);
static int check_need_cap(linenr_T lnum, colnr_T col);
static void spell_find_suggest(char_u *badptr, int badlen, suginfo_T *su, int maxcount, int banbadword, int need_cap, int interactive);
#ifdef FEAT_EVAL
@@ -3052,7 +3053,7 @@
* Return TRUE if "p" points to a word character.
* Unlike spell_iswordp() this doesn't check for "midword" characters.
*/
- int
+ static int
spell_iswordp_nmw(char_u *p, win_T *wp)
{
int c;