summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_spell.vim
AgeCommit message (Collapse)Author
2023-11-16patch 9.0.2111: [security]: overflow in get_numberv9.0.2111Christian Brabandt
Problem: [security]: overflow in get_number Solution: Return 0 when the count gets too large [security]: overflow in get_number When using the z= command, we may overflow the count with values larger than MAX_INT. So verify that we do not overflow and in case when an overflow is detected, simply return 0 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-27patch 9.0.1810: camel-case spelling has issues with digitsv9.0.1810LemonBoy
Problem: camel-case spelling has issues with digits Solution: Improve the camCase spell checking by taking digits and caps into account Rewrite the conditions to check for word boundaries by taking into account the presence of digits and all-caps sequences such as acronyms. closes: #12644 closes: #12933 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: LemonBoy <thatlemon@gmail.com>
2023-08-15patch 9.0.1718: dict-completion does not respect regionv9.0.1718LemonBoy
Problem: dict-completion does not respect region Solution: respect selected region in dict completion Set do_region to zero as we don't want a complete dump of the matching words, we want the code to filter them according to the user's selected region. closes: #12792 closes: #7025 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: LemonBoy <thatlemon@gmail.com>
2023-06-06patch 9.0.1614: strlen() called too often for :spellrepallv9.0.1614zeertzjq
Problem: strlen() called too often for :spellrepall. Solution: Store the result in a variable. (closes #12497)
2023-05-31patch 9.0.1595: line pointer becomes invalid when using spell checkingv9.0.1595Luuk van Baal
Problem: Line pointer becomes invalid when using spell checking. Solution: Call ml_get() at the right places. (Luuk van Baal, closes #12456)
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)
2022-11-14patch 9.0.0882: using freed memory after SpellFileMissing autocmd uses bwipev9.0.0882Bram Moolenaar
Problem: Using freed memory after SpellFileMissing autocmd uses bwipe. Solution: Bail out if the window no longer exists.
2022-10-10patch 9.0.0719: too many delete() calls in testsv9.0.0719Bram Moolenaar
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
2022-10-05patch 9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'v9.0.0664Bram Moolenaar
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'. Solution: Do not redraw the next line when "$" is in 'cpo'. (closes #11285)
2022-09-28patch 9.0.0616: spell test fails because error message changedv9.0.0616Bram Moolenaar
Problem: Spell test fails because error message changed. Solution: Adjust expected error message.
2022-09-27patch 9.0.0608: with spelling, deleting a full stop does not update next linev9.0.0608Bram Moolenaar
Problem: With spell checking, deleting a full stop at the end of a line does not update SpellCap at the start of the next line. Solution: Update the next line when characters have been deleted. Also when using undo.
2022-09-25patch 9.0.0590: after exiting Insert mode spelling not checked in next linev9.0.0590Bram Moolenaar
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-08-09patch 9.0.0175: spell checking for capital not working with trailing spacev9.0.0175Christian Brabandt
Problem: Spell checking for capital not working with trailing space. Solution: Do not calculate cap_col at the end of the line. (Christian Brabandt, closes #10870, issue #10838)
2022-07-14patch 9.0.0052: "zG" may throw an error if invalid character followsv9.0.0052K.Takata
Problem: "zG" may throw an error if invalid character follows. Solution: Pass the word length to valid_spell_word(). (Ken Takata, closes #10737)
2022-07-04patch 9.0.0035: spell dump may go beyond end of an arrayv9.0.0035Bram Moolenaar
Problem: Spell dump may go beyond end of an array. Solution: Limit the word length.
2022-07-04patch 9.0.0034: spell tests do not always clear the word listv9.0.0034zeertzjq
Problem: Spell tests do not always clear the word list. Solution: Clear the word list in TearDown(). (closes #10659)
2022-07-01patch 9.0.0021: invalid memory access when adding word to spell word listv9.0.0021Bram Moolenaar
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.
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-06-15patch 8.2.5098: spelldump test sometimes hangsv8.2.5098Bram Moolenaar
Problem: Spelldump test sometimes hangs. Solution: Catch the problem of the spell file not being found to avoid hanging in the download dialog.
2022-05-08patch 8.2.4921: spell test fails because of new illegal byte checkv8.2.4921Bram Moolenaar
Problem: Spell test fails because of new illegal byte check. Solution: Remove the test.
2022-03-22patch 8.2.4611: typos in tests; one lua line not covered by testv8.2.4611Dominique Pelle
Problem: Typos in tests; one lua line not covered by test. Solution: Fix typos. Add test case. (Dominique Pellé, closes #9994)
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-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.
2021-12-05patch 8.2.3744: E854 is not tested; some spelling suggestions are not testedv8.2.3744Dominique Pelle
Problem: E854 is not tested; some spelling suggestions are not tested. Solution: Add a couple of tests. (Dominique Pellé, closes #9279)
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.
2020-10-07patch 8.2.1808: no test coverage for ":spelldump!"v8.2.1808Bram Moolenaar
Problem: No test coverage for ":spelldump!". Solution: Add a test. (Dominique Pellé, closes #7089)
2020-09-28patch 8.2.1770: invalid memory use when using SpellFileMissing autocmdv8.2.1770Bram Moolenaar
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-27patch 8.2.1754: completion with spell checking not testedv8.2.1754Bram Moolenaar
Problem: Completion with spell checking not tested. Solution: Add a test case. (Dominique Pellé, closes #7024)
2020-09-11patch 8.2.1659: spellfile code not completely testedv8.2.1659Bram Moolenaar
Problem: Spellfile code not completely tested. Solution: Add a few more test cases. (Yegappan Lakshmanan, closes #6929)
2020-07-11patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar
Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
2020-06-10patch 8.2.0953: spell checking doesn't work for CamelCased wordsv8.2.0953Bram Moolenaar
Problem: Spell checking doesn't work for CamelCased words. Solution: Add the "camel" value in the new option 'spelloptions'. (closes #1235)
2020-06-10patch 8.2.0948: spell test failsv8.2.0948Bram Moolenaar
Problem: Spell test fails. Solution: Adjust expected text of the prompt.
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-03-25patch 8.2.0448: various functions not properly testedv8.2.0448Bram Moolenaar
Problem: Various functions not properly tested. Solution: Add more tests, especially for failures. (Yegappan Lakshmanan, closes #5843)
2020-03-18patch 8.2.0401: not enough test coverage for evalvars.cv8.2.0401Bram Moolenaar
Problem: Not enough test coverage for evalvars.c. Solution: Add more tests. (Yegappan Lakshmanan, closes #5804)
2019-12-26patch 8.2.0046: tests for spell suggestions are slowv8.2.0046Bram Moolenaar
Problem: Tests for spell suggestions are slow. Solution: Use shorter words. Test with latin1 and utf-8 to cover more code. (Dominique Pelle, closes #5399)
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-12-25patch 8.2.0038: spell suggestions insufficiently testedv8.2.0038Bram Moolenaar
Problem: Spell suggestions insufficiently tested. Solution: Add spell suggestion tests. (Dominique Pelle, closes #5398)
2019-11-17patch 8.1.2317: no test for spell affix file with flag on suffixv8.1.2317Bram Moolenaar
Problem: No test for spell affix file with flag on suffix. Solution: Add a test case.
2019-11-07patch 8.1.2268: spell file flag zero is not recognizedv8.1.2268Bram Moolenaar
Problem: Spell file flag zero is not recognized. Solution: Use -1 as an error value, so that zero can be used as a valid flag number.
2019-10-18patch 8.1.2172: spell highlight is wrong at start of the linev8.1.2172Bram Moolenaar
Problem: Spell highlight is wrong at start of the line. Solution: Fix setting the "v" variable. (closes #5078)
2019-10-10patch 8.1.2131: MSVC tests failv8.1.2131Bram Moolenaar
Problem: MSVC tests fail. Solution: Replace backslashes with slashes.
2019-10-10patch 8.1.2129: using hard coded executable path in testv8.1.2129Bram Moolenaar
Problem: Using hard coded executable path in test. Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James McCoy, closes #5025)
2019-09-07patch 8.1.2004: more functions can be used as methodsv8.1.2004Bram Moolenaar
Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
2019-08-06patch 8.1.1824: crash when correctly spelled word is very longv8.1.1824Bram Moolenaar
Problem: Crash when correctly spelled word is very long. (Ben Kraft) Solution: Check word length before copying. (closes #4778)
2019-06-15patch 8.1.1544: some balloon tests don't run when they canv8.1.1544Bram Moolenaar
Problem: Some balloon tests don't run when they can. Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi, closes #4538) Change the feature check into a command for consistency.
2019-06-13patch 8.1.1524: tests are silently skippedv8.1.1524Bram Moolenaar
Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
2019-04-10patch 8.1.1144: too strict checking of the 'spellfile' optionv8.1.1144Bram Moolenaar
Problem: Too strict checking of the 'spellfile' option. Solution: Allow for a path.
2019-04-10patch 8.1.1143: may pass weird strings to file name expansionv8.1.1143Bram Moolenaar
Problem: May pass weird strings to file name expansion. Solution: Check for matching characters. Disallow control characters.