forked from aniani/vim
patch 8.2.0674: some source files are too big
Problem: Some source files are too big. Solution: Move text formatting functions to a new file. (Yegappan Lakshmanan, closes #6021)
This commit is contained in:
12
src/option.c
12
src/option.c
@@ -6491,18 +6491,6 @@ wc_use_keyname(char_u *varp, long *wcp)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if format option 'x' is in effect.
|
||||
* Take care of no formatting when 'paste' is set.
|
||||
*/
|
||||
int
|
||||
has_format_option(int x)
|
||||
{
|
||||
if (p_paste)
|
||||
return FALSE;
|
||||
return (vim_strchr(curbuf->b_p_fo, x) != NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if "x" is present in 'shortmess' option, or
|
||||
* 'shortmess' contains 'a' and "x" is present in SHM_A.
|
||||
|
Reference in New Issue
Block a user