aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-26 22:37:20 +0800
committerGitHub <noreply@github.com>2022-08-26 22:37:20 +0800
commit0b72e23bf13ade1e76d11eae6990014098b3928d (patch)
treefa9ebbdd2d80d604cb67a952bdfedc26d038cb99 /src/nvim/option.c
parent2ecb4076dfa2236f6610449bbcb3f887f1c4f9f1 (diff)
downloadrneovim-0b72e23bf13ade1e76d11eae6990014098b3928d.tar.gz
rneovim-0b72e23bf13ade1e76d11eae6990014098b3928d.tar.bz2
rneovim-0b72e23bf13ade1e76d11eae6990014098b3928d.zip
vim-patch:8.2.0674: some source files are too big (#19959)
Problem: Some source files are too big. Solution: Move text formatting functions to a new file. (Yegappan Lakshmanan, closes vim/vim#6021) https://github.com/vim/vim/commit/11abd095210fc84e5dcee87b9baed86061caefe4 Cherry-pick set_can_cindent() from patch 8.1.2062. Cherry-pick global old_indent from patch 8.2.2127.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 3f7c200928..95c3ccf71c 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5047,17 +5047,6 @@ static int 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.
-bool has_format_option(int x)
- FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
-{
- if (p_paste) {
- return false;
- }
- return vim_strchr(curbuf->b_p_fo, x) != NULL;
-}
-
/// @returns true if "x" is present in 'shortmess' option, or
/// 'shortmess' contains 'a' and "x" is present in SHM_ALL_ABBREVIATIONS.
bool shortmess(int x)