diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-22 21:02:42 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-23 08:57:16 -0400 |
commit | 2894649c2ea89642705cfe3b1e7912335a13bad5 (patch) | |
tree | b389247bd630cff0433ae29e63cac159bdfc03db /src/nvim/option.c | |
parent | 9280a69a6d1828972cb8a0f6b7f81e0a5e73c886 (diff) | |
download | rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.tar.gz rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.tar.bz2 rneovim-2894649c2ea89642705cfe3b1e7912335a13bad5.zip |
vim-patch:8.2.0901: formatting CJK text isn't optimal
Problem: Formatting CJK text isn't optimal.
Solution: Properly break CJK lines. (closes vim/vim#3875)
https://github.com/vim/vim/commit/e52702f00322c8a8861efd0bd6a3775e685e5685
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 484d9da3a1..4569eb1dda 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -6803,7 +6803,8 @@ static void langmap_set(void) /// Return true if format option 'x' is in effect. /// Take care of no formatting when 'paste' is set. -int has_format_option(int x) +bool has_format_option(int x) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { if (p_paste) { return false; |