diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-25 13:55:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-25 13:55:24 +0100 |
commit | 569fea2c312126dd5a542c4b1aa51095136a2c0d (patch) | |
tree | 35082cea27c713fecdd8574f9b4b65eb6842d5e1 /src/testdir/test_spell.vim | |
parent | e9a8d1f9adaf4599b5a7923f8db8e207ed6e7eca (diff) |
patch 8.2.0039: memory access error when "z=" has no suggestionsv8.2.0039
Problem: Memory access error when "z=" has no suggestions.
Solution: Check for negative index.
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 091276b45d..7080c203b6 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -241,9 +241,7 @@ func Test_spellsuggest_option_number() \ .. "Type number and <Enter> or click with mouse (empty cancels): ", a) set spell spellsuggest=0 - " FIXME: the following line is currently commented out as it triggers a - " memory error detected in cleanup_suggestions() by asan or valgrind. - "call assert_equal("\nSorry, no suggestions", execute('norm z=')) + call assert_equal("\nSorry, no suggestions", execute('norm z=')) " Unlike z=, function spellsuggest(...) should not be affected by the " max number of suggestions (2) set by the 'spellsuggest' option. |