diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-11 22:32:39 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-12 13:06:49 -0400 |
| commit | e78656875dc82206928812a26df49eca99d0b098 (patch) | |
| tree | 3122dfe41801fa2d74ad02a18e76ac2eb4d9828c /src/nvim/testdir | |
| parent | f376e67a536010d8e0250fb96b28f66ddcf7168a (diff) | |
| download | rneovim-e78656875dc82206928812a26df49eca99d0b098.tar.gz rneovim-e78656875dc82206928812a26df49eca99d0b098.tar.bz2 rneovim-e78656875dc82206928812a26df49eca99d0b098.zip | |
vim-patch:8.2.0039: memory access error when "z=" has no suggestions
Problem: Memory access error when "z=" has no suggestions.
Solution: Check for negative index.
https://github.com/vim/vim/commit/569fea2c312126dd5a542c4b1aa51095136a2c0d
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_spell.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 587d9fc42c..2ec77ca57a 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -285,9 +285,7 @@ func Test_spellsuggest_option_number() \ .. "Type number and <Enter> or click with the mouse (q or 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. |