comparison src/option.c @ 20237:918245588b50 v8.2.0674

patch 8.2.0674: some source files are too big Commit: https://github.com/vim/vim/commit/11abd095210fc84e5dcee87b9baed86061caefe4 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 1 14:26:37 2020 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 May 2020 14:30:04 +0200
parents 9a67d41708d2
children 246101db63a4
comparison
equal deleted inserted replaced
20236:366b1c4f8c49 20237:918245588b50
6490 } 6490 }
6491 return FALSE; 6491 return FALSE;
6492 } 6492 }
6493 6493
6494 /* 6494 /*
6495 * Return TRUE if format option 'x' is in effect.
6496 * Take care of no formatting when 'paste' is set.
6497 */
6498 int
6499 has_format_option(int x)
6500 {
6501 if (p_paste)
6502 return FALSE;
6503 return (vim_strchr(curbuf->b_p_fo, x) != NULL);
6504 }
6505
6506 /*
6507 * Return TRUE if "x" is present in 'shortmess' option, or 6495 * Return TRUE if "x" is present in 'shortmess' option, or
6508 * 'shortmess' contains 'a' and "x" is present in SHM_A. 6496 * 'shortmess' contains 'a' and "x" is present in SHM_A.
6509 */ 6497 */
6510 int 6498 int
6511 shortmess(int x) 6499 shortmess(int x)