summaryrefslogtreecommitdiffstats
path: root/src/spellsuggest.c
AgeCommit message (Collapse)Author
2023-05-25patch 9.0.1578: SpellCap highlight not always updated when neededv9.0.1578Luuk van Baal
Problem: SpellCap highlight not always updated when needed. Solution: Handle updating line below closed fold and other situations where only part of the window is redrawn. (Luuk van Baal, closes #12428, closes #12420)
2023-03-07patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390Yegappan Lakshmanan
Problem: FOR_ALL_ macros are defined in an unexpected file. Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS. (Yegappan Lakshmanan, closes #12109)
2023-02-20patch 9.0.1330: handling new value of an option has a long "else if" chainv9.0.1330Yegappan Lakshmanan
Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
2023-02-01patch 9.0.1271: using sizeof() and subtract array size is trickyv9.0.1271zeertzjq
Problem: Using sizeof() and subtract array size is tricky. Solution: Use offsetof() instead. (closes #11926)
2023-01-23patch 9.0.1237: code is indented more than necessaryv9.0.1237Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11858)
2022-10-13patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij
Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
2022-07-30patch 9.0.0109: writing over the end of a buffer on stackv9.0.0109Bram Moolenaar
Problem: Writing over the end of a buffer on stack when making list of spell suggestions. Solution: Make sure suggested word is not too long. (closes #10812)
2022-06-18patch 8.2.5123: using invalid index when looking for spell suggestionsv8.2.5123Bram Moolenaar
Problem: Using invalid index when looking for spell suggestions. Solution: Do not decrement the index when it is zero.
2022-05-23patch 8.2.5007: spell suggestion may use uninitialized memoryv8.2.5007Bram Moolenaar
Problem: Spell suggestion may use uninitialized memory. (Zdenek Dohnal) Solution: Avoid going over the end of the word.
2022-05-13patch 8.2.4947: text properties not adjusted when accepting spell suggestionv8.2.4947LemonBoy
Problem: Text properties not adjusted when accepting spell suggestion. Solution: Adjust text properties when text changes. (closes #10414)
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-03-16patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menuv8.2.4579Yegappan Lakshmanan
Problem: Cannot use page-up and page-down in the command line completion popup menu. Solution: Check for to page-up and page-down keys. (Yegappan Lakshmanan, closes #9960)
2022-03-14patch 8.2.4565: no command line completion for :breakadd and :breakdelv8.2.4565Bram Moolenaar
Problem: No command line completion for :breakadd and :breakdel. Solution: Add completion for :breakadd and :breakdel. (Yegappan Lakshmanan, closes #9950)
2022-03-13patch 8.2.4563: "z=" in Visual mode may go beyond the end of the linev8.2.4563Bram Moolenaar
Problem: "z=" in Visual mode may go beyond the end of the line. Solution: Adjust "badlen".
2022-02-16patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo252
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
2022-01-30patch 8.2.4258: Coverity warns for array overrunv8.2.4258Bram Moolenaar
Problem: Coverity warns for array overrun. Solution: Restrict depth to MAXWLEN - 1.
2022-01-29patch 8.2.4249: the timeout limit for spell suggestions is always 5000v8.2.4249Bram Moolenaar
Problem: The timeout limit for spell suggestions is always 5000 milli seconds. Solution: Add the "timeout" entry to 'spellsuggest'.
2022-01-29patch 8.2.4247: stack corruption when looking for spell suggestionsv8.2.4247Bram Moolenaar
Problem: Stack corruption when looking for spell suggestions. Solution: Prevent the depth increased too much. Add a five second time limit to finding suggestions.
2022-01-08patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar
Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-27patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle
Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
2021-11-04patch 8.2.3582: reading uninitialized memory when giving spell suggestionsv8.2.3582Bram Moolenaar
Problem: Reading uninitialized memory when giving spell suggestions. Solution: Check that preword is not empty.
2021-10-06patch 8.2.3484: crash when going through spell suggestionsv8.2.3484Bram Moolenaar
Problem: Crash when going through spell suggestions. Solution: Limit the text length for finding suggestions to the original length. Do not update buffers when exiting. (closes #8965)
2021-06-11patch 8.2.2974: Greek spell checking uses wrong case foldingv8.2.2974Bram Moolenaar
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-01-20patch 8.2.2379: do spell suggestions twice if 'spellsuggest' contains numberv8.2.2379Bram Moolenaar
Problem: Finding spell suggestions twice if 'spellsuggest' contains number. Solution: Only do internal suggestions once. (closes #7713)
2020-09-02patch 8.2.1564: a few remaining errors from ubsanv8.2.1564Bram Moolenaar
Problem: A few remaining errors from ubsan. Solution: Avoid the warnings. (Dominique Pellé, closes #6837)
2020-09-01patch 8.2.1560: using NULL pointers in some codev8.2.1560Bram Moolenaar
Problem: Using NULL pointers in some code. (James McCoy) Solution: Avoid adding to a NULL pointer. Use byte as unsigned.
2020-07-01patch 8.2.1104: Coverity warnts for possible NULL pointer usev8.2.1104Bram Moolenaar
Problem: Coverity warnts for possible NULL pointer use. Solution: Check "pbyts" is not NULL.
2020-06-29patch 8.2.1095: may use pointer after freeing itv8.2.1095Bram Moolenaar
Problem: May use pointer after freeing it when text properties are used. Solution: Update redo buffer before calling ml_replace().
2020-06-10patch 8.2.0945: cannot use "z=" when 'spell' is offv8.2.0945Bram Moolenaar
Problem: Cannot use "z=" when 'spell' is off. Solution: Make "z=" work even when 'spell' is off. (Christian Brabandt, Gary Johnson, closes #6227)
2020-04-12patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar
Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-02patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar
Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
2020-03-15patch 8.2.0387: error for possible NULL argument to qsort()v8.2.0387Bram Moolenaar
Problem: Error for possible NULL argument to qsort(). Solution: Don't call qsort() when there is nothing to sort. (Dominique Pelle, closes #5780)
2019-12-25patch 8.2.0041: leaking memory when selecting spell suggestionv8.2.0041Bram Moolenaar
Problem: Leaking memory when selecting spell suggestion. Solution: Free previous value at the right time.
2019-12-25patch 8.2.0039: memory access error when "z=" has no suggestionsv8.2.0039Bram Moolenaar
Problem: Memory access error when "z=" has no suggestions. Solution: Check for negative index.
2019-11-02patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar
Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
2019-10-06patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar
Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
2019-09-27patch 8.1.2081: the spell.c file is too bigv8.1.2081Bram Moolenaar
Problem: The spell.c file is too big. Solution: Move the code for spell suggestions to a separate file. (Yegappan Lakshmanan, closes #4988)