Yegappan Lakshmanan
f2e30d0c44
patch 9.0.1262: the did_set_string_option function is too long
...
Problem: The did_set_string_option function is too long.
Solution: Split off functionality to individual functions. (Yegappan
Lakshmanan, Lewis Russell, closes #11904 )
2023-01-30 13:04:42 +00:00
Yegappan Lakshmanan
6ec6666047
patch 9.0.1237: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11858 )
2023-01-23 20:46:21 +00:00
Bram Moolenaar
c3d27ada14
patch 9.0.0882: using freed memory after SpellFileMissing autocmd uses bwipe
...
Problem: Using freed memory after SpellFileMissing autocmd uses bwipe.
Solution: Bail out if the window no longer exists.
2022-11-14 20:52:14 +00:00
dundargoc
c57b5bcd22
patch 9.0.0828: various typos
...
Problem: Various typos.
Solution: Correct typos. (closes #11432 )
2022-11-02 13:30:51 +00:00
Martin Tournoij
ba43e76fcd
patch 9.0.0747: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Gradudate the +cmdline_info feature. (Martin Tournoij,
closes #11330 )
2022-10-13 22:12:15 +01:00
Bram Moolenaar
ef976323e7
patch 9.0.0614: SpellFileMissing autocmd may delete buffer
...
Problem: SpellFileMissing autocmd may delete buffer.
Solution: Disallow deleting the current buffer to avoid using freed memory.
2022-09-28 11:48:30 +01:00
Bram Moolenaar
ee09fcc9b6
patch 9.0.0590: after exiting Insert mode spelling not checked in next line
...
Problem: After exiting Insert mode spelling is not checked in the next
line.
Solution: When spelling is enabled redraw the next line after exiting Insert
mode in case the spell highlight needs updating.
2022-09-25 20:58:30 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
Bram Moolenaar
bc49c5f48f
patch 9.0.0138: not enough characters accepted for 'spellfile'
...
Problem: Not enough characters accepted for 'spellfile'.
Solution: Add vim_is_fname_char() and use it for 'spellfile'.
2022-08-04 13:01:48 +01:00
Bram Moolenaar
54e5fed6d2
patch 9.0.0035: spell dump may go beyond end of an array
...
Problem: Spell dump may go beyond end of an array.
Solution: Limit the word length.
2022-07-04 13:37:07 +01:00
Bram Moolenaar
2813f38e02
patch 8.2.5072: using uninitialized value and freed memory in spell command
...
Problem: Using uninitialized value and freed memory in spell command.
Solution: Initialize "attr". Check for empty line early.
2022-06-09 19:54:24 +01:00
Bram Moolenaar
875339b22a
patch 8.2.4985: PVS warns for possible array underrun
...
Problem: PVS warns for possible array underrun.
Solution: Add a check for a positive value. (closes #10451 )
2022-05-20 14:10:50 +01:00
LemonBoy
b7a7012555
patch 8.2.4947: text properties not adjusted when accepting spell suggestion
...
Problem: Text properties not adjusted when accepting spell suggestion.
Solution: Adjust text properties when text changes. (closes #10414 )
2022-05-13 12:41:50 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
Bram Moolenaar
fe154990c1
patch 8.2.4610: some conditions are always true
...
Problem: Some conditions are always true.
Solution: Remove the useless conditions. (closes #9993 )
2022-03-22 20:42:12 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Yegappan Lakshmanan
6409553b6e
patch 8.2.3751: cannot assign a lambda to an option that takes a function
...
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286 )
2021-12-06 11:03:55 +00:00
Yegappan Lakshmanan
8ee52affe7
patch 8.2.3320: some local functions are not static
...
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734 )
2021-08-09 19:59:06 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +02:00
Bram Moolenaar
4f13527598
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 #299 )
2021-06-11 19:07:40 +02:00
Bram Moolenaar
dd1f426bd6
patch 8.2.2254: Vim9: bool option type is number
...
Problem: Vim9: bool option type is number.
Solution: Have get_option_value() return a different value for bool and
number options. (closes #7583 )
2020-12-31 17:41:01 +01:00
Bram Moolenaar
b2620202c7
patch 8.2.1926: cannot use a space in 'spellfile'
...
Problem: Cannot use a space in 'spellfile'. (Filipe Brandenburger)
Solution: Permit using a space. (closes #7230 )
2020-10-30 19:25:09 +01:00
Bram Moolenaar
d569a9e746
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd
...
Problem: Invalid memory use when using SpellFileMissing autocmd.
Solution: Add test case. (Dominique Pellé, closes #7036 ) Fix using a window
that was closed.
2020-09-28 23:13:15 +02:00
Bram Moolenaar
2c12f89055
patch 8.2.1696: unused (duplicate) macros
...
Problem: Unused (duplicate) macros.
Solution: Remove the macros.
2020-09-16 17:30:27 +02:00
Bram Moolenaar
2d4070d3b0
patch 8.2.0957: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize one variable.
2020-06-11 12:30:13 +02:00
Bram Moolenaar
e0ebeda4d8
patch 8.2.0956: spell test fails
...
Problem: Spell test fails.
Solution: Add missing change the spell checking.
2020-06-10 22:17:58 +02:00
Bram Moolenaar
152e79e94b
patch 8.2.0945: cannot use "z=" when 'spell' is off
...
Problem: Cannot use "z=" when 'spell' is off.
Solution: Make "z=" work even when 'spell' is off. (Christian Brabandt,
Gary Johnson, closes #6227 )
2020-06-10 15:32:08 +02:00
Bram Moolenaar
f154f3ab2c
patch 8.2.0932: missspelling spelllang
...
Problem: Missspelling spelllang.
Solution: Add an "l". (Dominique Pelle)
2020-06-08 18:54:49 +02:00
Bram Moolenaar
ca70c07b72
patch 8.2.0853: ml_delete() often called with FALSE argument
...
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-30 20:30:46 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
c036e87bd7
patch 8.2.0295: highlighting for :s wrong when using different separator
...
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665 )
2020-02-21 21:30:52 +01:00
Bram Moolenaar
4b96df5a01
patch 8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532 )
2020-01-26 22:00:26 +01:00
Bram Moolenaar
0d6f5d9740
patch 8.1.2395: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 21:33:15 +01:00
Bram Moolenaar
92ea26b925
patch 8.1.2173: searchit() has too many arguments
...
Problem: Searchit() has too many arguments.
Solution: Move optional arguments to a struct. Add the "wrapped" argument.
2019-10-18 20:53:34 +02:00
Bram Moolenaar
53efb18530
patch 8.1.2147: crash when allocating memory fails
...
Problem: Crash when allocating memory fails. (Zu-Ming Jiang)
Solution: Check that 'spellcapcheck' is not NULL. (closes #5048 )
2019-10-13 19:49:26 +02:00
Bram Moolenaar
1614a14901
patch 8.1.2120: some MB_ macros are more complicated than necessary
...
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
2019-10-06 22:00:13 +02:00
Bram Moolenaar
46a426c9ac
patch 8.1.2081: the spell.c file is too big
...
Problem: The spell.c file is too big.
Solution: Move the code for spell suggestions to a separate file. (Yegappan
Lakshmanan, closes #4988 )
2019-09-27 12:41:56 +02:00
Bram Moolenaar
e677df8d93
patch 8.1.1966: some code in options.c fits better elsewhere
...
Problem: Some code in options.c fits better elsewhere.
Solution: Move functions from options.c to other files. (Yegappan
Lakshmanan, closes #4889 )
2019-09-02 22:31:11 +02:00
Bram Moolenaar
e2c453d38f
patch 8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
2019-08-21 14:37:09 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
5bcc5a1ff9
patch 8.1.1824: crash when correctly spelled word is very long
...
Problem: Crash when correctly spelled word is very long. (Ben Kraft)
Solution: Check word length before copying. (closes #4778 )
2019-08-06 22:48:02 +02:00
Bram Moolenaar
06e6377009
patch 8.1.1715: emoji characters are seen as word characters for spelling
...
Problem: Emoji characters are seen as word characters for spelling. (Gautam
Iyer)
Solution: Exclude class 3 from word characters.
2019-07-19 23:04:34 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00