Dundar Goc
824a729628
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-31 00:52:59 +02:00
dundargoc
b4e12bfa00
refactor: enable -Wconversion warning for spellfile.c ( #19527 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-28 18:49:46 +08:00
zeertzjq
072fb55cb0
vim-patch:9.0.0052: "zG" may throw an error if invalid character follows ( #19368 )
...
Problem: "zG" may throw an error if invalid character follows.
Solution: Pass the word length to valid_spell_word(). (Ken Takata,
closes vim/vim#10737 )
2ebcc35826
2022-07-15 08:42:36 +08:00
zeertzjq
a2d8d5e1f5
vim-patch:8.2.1522: not enough test coverage for the spell file handling
...
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes vim/vim#6763 )
c8ec5fe56f
Add missing whitespace in message.
2022-07-04 09:15:03 +08:00
zeertzjq
ed64c8f683
vim-patch:8.2.1493: not enough test coverage for the spell file handling
...
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes vim/vim#6728 )
fc2a47ffc4
2022-07-04 09:09:42 +08:00
Dundar Goc
3b8804571c
refactor: replace char_u
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-02 16:01:27 +02:00
zeertzjq
998a96803b
vim-patch:9.0.0021: invalid memory access when adding word to spell word list
...
Problem: Invalid memory access when adding word with a control character to
the internal spell word list.
Solution: Disallow adding a word with control characters or a trailing
slash.
5e59ea54c0
2022-07-02 06:55:23 +08:00
dundargoc
014a88799a
refactor: replace char_u #18429
...
Work on https://github.com/neovim/neovim/issues/459
2022-06-28 02:31:54 -07:00
dundargoc
9fec6dc9a2
refactor(uncrustify): set maximum number of consecutive newlines to 2 ( #18695 )
2022-05-25 12:31:14 -06:00
Dundar Goc
f0148de790
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-16 13:27:06 +02:00
bfredl
af9c1e572d
Merge pull request #18489 from dundargoc/refactor/remove-char_u
...
refactor: replace char_u variables and functions with char
2022-05-13 00:14:46 +02:00
zeertzjq
274f260806
vim-patch:8.2.4919: can add invalid bytes with :spellgood
...
Problem: Can add invalid bytes with :spellgood.
Solution: Check for a valid word string.
7c824682d2
2022-05-12 23:07:35 +08:00
Dundar Goc
85aae12a6d
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-11 23:19:57 +02:00
Dundar Goc
e31b32a293
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-09 10:03:29 +02:00
Dundar Goc
2a378e6e82
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-07 14:54:01 +02:00
Dundar Goc
5576d30e89
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-04 15:25:54 +02:00
Dundar Goc
eef8de4df0
refactor(uncrustify): change rules to better align with the style guide
...
Add space around arithmetic operators '+' and '-'.
Remove space between back-to-back parentheses, i.e. ')(' vs. ') ('.
Remove space between '((' or '))' of control statements.
Add space between ')' and '{' of control statements.
Remove space between function name and '(' on function declaration.
Collapse empty blocks between '{' and '}'.
Remove newline at the end of the file.
Remove newline between 'enum' and '{'.
Remove newline between '}' and ')' in a function invocation.
Remove newline between '}' and 'while' of 'do' statement.
2022-04-29 14:13:06 +02:00
dundargoc
0648100fed
refactor: convert macros to all-caps ( #17895 )
...
Closes https://github.com/neovim/neovim/issues/6297
2022-04-24 20:18:43 -06:00
Brian Leung
69e11b58b4
vim-patch:8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros.
ae6f1d8b14
2022-04-03 16:11:23 -07:00
dundargoc
e7ac16425c
vim-patch:8.2.4473: Coverity warns for not checking return value of ftell() ( #17914 )
...
Problem: Coverity warns for not checking return value of ftell().
Solution: Bail out if ftell() returns a negative value.
416b5f4894
2022-03-30 05:54:02 +08:00
zeertzjq
5220891571
vim-patch:8.2.4343: when reloading not all properties are detected
...
Problem: When reloading not all properties are detected.
Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes vim/vim#9579 )
8196e94a8b
Cherry-pick some test changes from patch 8.1.1826.
2022-02-14 11:35:25 +08:00
dundargoc
6e00d4754c
vim-patch:8.2.3914 ( #16808 )
...
* vim-patch:8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes vim/vim#9416 )
af4a61a85d
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2021-12-28 11:28:48 +01:00
Björn Linse
e93b26eb0e
Merge pull request #16613 from bfredl/vim-patch-8.2.3777
...
vim-patch:8.2.3777: spell file write error not checked
2021-12-11 09:25:09 +01:00
Björn Linse
d23a5da890
vim-patch:8.2.3777: spell file write error not checked
...
Problem: Spell file write error not checked.
Solution: Check writing the prefix conditions. (Björn Linse, closes vim/vim#9323 )
2021-12-10 23:30:01 +01:00
Björn Linse
df54d82b7c
refactor(misc1): move out high-level input functions to a new file: input.c
...
Possibly dialog code is messages.c could be moved here as well.
misc1.c is now empty, so delete it.
2021-12-10 18:15:33 +01:00
Björn Linse
2ec0e0a868
refactor(misc1): move line_breakcheck family of functions to os/input.c
2021-12-09 21:00:04 +01:00
dundargoc
725cbe7d41
refactor: saner options for uncrustify ( #16204 )
...
* sp_enum_after_assign = force
* sp_brace_typedef = force
* nl_do_brace = remove
* sp_do_brace_open = force
* sp_brace_close_while = force
* sp_before_semi = remove
* sp_before_semi_for = remove
* sp_before_semi_for_empty = remove
* sp_between_semi_for_empty = remove
* sp_after_semi_for_empty = remove
* sp_before_square = remove
* sp_before_squares = remove
* sp_inside_square = remove
* sp_inside_fparens = remove
* sp_inside_fparen = remove
* sp_inside_tparen = remove
* sp_after_tparen_close = remove
* sp_return_paren = force
* pos_bool = lead
* sp_pp_concat = remove
* sp_pp_stringify = remove
* fixup: disable formatting for the INIT section
2021-11-19 14:21:53 -05:00
Björn Linse
1450a6f753
refactor(macroman): get rid of MB_COPY_CHAR macro
...
clean up docs for MB_PTR_ADV and MB_PTR_BACK
2021-11-14 17:08:50 +01:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00
Björn Linse
71a4d275dc
refactor(multibyte): eliminate mb_char2len alias for utf_char2len
2021-11-14 12:49:12 +01:00
Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
James McCoy
e6ff154be6
vim-patch:8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
32526b3c18
2021-11-01 06:41:29 -04:00
James McCoy
efa924f66b
vim-patch:8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
vim/vim#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
f9e3e09fdc
2021-11-01 06:41:28 -04:00
dundargoc
a68faed02d
refactor: saner options for uncrustify #16196
...
* refactor: general good option changes
sp_deref = remove
sp_not = remove
sp_inv = remove
sp_inside_paren_cast = remove
mod_remove_duplicate_include = true
sp_after_semi = add
sp_after_semi_for = force
sp_sizeof_paren = remove
nl_return_expr = remove
nl_else_brace = remove
nl_else_if = remove
* refactor: mod_remove_extra_semicolon = true
* refactor: nl_max = 3
* refactor: sp_bool = force
* refactor: sp_compare = force
* refactor: sp_inside_paren = remove
* refactor: sp_paren_paren = remove
* refactor: sp_inside_sparen = remove
* refactor: sp_before_sparen = force
* refactor: sp_sign = remove
* refactor: sp_addr = remove
* refactor: sp_member = remove
* refactor: nl_struct_brace = remove
* refactor: nl_before_if_closing_paren = remove
* refactor: nl_fdef_brace = force
* refactor: sp_paren_comma = force
* refactor: mod_full_brace_do = add
2021-10-31 17:03:08 -07:00
Jan Edmund Lazo
77e6ecf85a
Merge pull request #15930 from dundargoc/vim-patch/old-style-c-comments
...
vim-patch:8.1.2396,8.1.2395,8.1.2394,8.1.2392,8.1.2368,8.1.2388,8.1.2379
2021-10-17 10:21:40 -04:00
dundargoc
649b3160a1
refactor: reduce number of unique char casts ( #15995 )
2021-10-12 17:52:54 +02:00
Dundar Göc
e8f87f15d7
vim-patch:8.1.2395: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
0d6f5d9740
2021-10-06 11:50:10 +02:00
dundargoc
d90fb1c0bf
Refactor/uncrustify ( #15790 )
...
* refactor: format with uncrustify
* fixup(dundar): fix functions comments
* fixup(dundar): remove space between variable and ++/--
* fixup(dundar): better workaround for macro attributes
This is done to be able to better use uncrustify rules for macros
* fixup(justin): make preprocessors follow neovim style guide
2021-09-29 19:48:50 +02:00
Sean Dewar
17f377b6f9
vim-patch:8.2.3328: Coverity error for not checking return value
...
Problem: Coverity error for not checking return value.
Solution: Check value is not negative.
b85d3627d9
2021-09-17 02:10:43 +01:00
dundargoc
db1b0ee3b3
refactor: replace TRUE/FALSE with true/false #15425
2021-08-22 07:10:57 -07:00
Dundar Göc
94120d2fd5
refactor: replace TRUE/FALSE with true/false
2021-07-30 12:29:32 +02:00
Jan Edmund Lazo
61117d89a3
vim-patch:8.1.1838: there is :spellwrong and :spellgood but not :spellrare
...
Problem: There is :spellwrong and :spellgood but not :spellrare.
Solution: Add :spellrare. (Martin Tournoij, closes vim/vim#4291 )
08cc374dab
2021-06-12 13:06:48 -04:00
Jan Edmund Lazo
2644fe5b7c
vim-patch:8.2.2974: Greek spell checking uses wrong case folding
...
Problem: Greek spell checking uses wrong case folding.
Solution: Fold capital sigma depending on whether it is at the end of a
word or not. (closes vim/vim#299 )
4f13527598
2021-06-11 17:00:14 -04:00
Jan Edmund Lazo
02cda35cf7
vim-patch:8.2.2462: Coverity warns for not checking for fseek() error
...
Problem: Coverity warns for not checking for fseek() error.
Solution: Give an error message if fseek() fails.
2c363a2e95
2021-02-03 18:37:32 -05:00
Jan Edmund Lazo
723e009214
Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc"
...
This reverts commit 44bb7147e4
.
Avoid regression mentioned in c64cce906e (commitcomment-45554271)
2020-12-31 16:44:53 -05:00
Jan Edmund Lazo
44bb7147e4
vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc
...
Problem: Mode is not cleared when leaving Insert mode with mapped Esc.
Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269 )
4c25bd785a
2020-12-26 02:34:13 -05:00
Jan Edmund Lazo
93c18867a0
vim-patch:8.1.0810: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 4.
264b74fa54
2020-11-12 18:12:05 -05:00
Jan Edmund Lazo
5329cb2e5c
vim-patch:8.2.1521: reading past end of buffer when reading spellfile
...
Problem: Reading past end of buffer when reading spellfile. (Yegappan
Lakshmanan)
Solution: Store the byte length and check for it.
07399e7f07
2020-10-29 18:36:38 -04:00
Jan Edmund Lazo
5fcdb63025
vim-patch:8.2.1564: a few remaining errors from ubsan
...
Problem: A few remaining errors from ubsan.
Solution: Avoid the warnings. (Dominique Pellé, closes vim/vim#6837 )
4ad739fc05
2020-09-02 22:44:21 -04:00
Jan Edmund Lazo
4bcca0baa9
vim-patch:8.2.1565: spellfile test sometimes fails
...
Problem: Spellfile test sometimes fails.
Solution: Check running into the end of the file.
e90d63ea90
2020-09-02 09:10:50 -04:00