Mercurial > vim
diff src/testdir/test_number.vim @ 17286:a513b81d3689 v8.1.1642
patch 8.1.1642: may use uninitialized variable
commit https://github.com/vim/vim/commit/ec572ad6a6cb0d4e71901951a70a4f038d48cb17
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 7 14:26:59 2019 +0200
patch 8.1.1642: may use uninitialized variable
Problem: May use uninitialized variable. (Patrick Palka)
Solution: Initialize variables earlier. (closes https://github.com/vim/vim/issues/4623)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jul 2019 14:30:04 +0200 |
parents | 63b02fcf1361 |
children | b9cf60801963 |
line wrap: on
line diff
--- a/src/testdir/test_number.vim +++ b/src/testdir/test_number.vim @@ -252,3 +252,14 @@ func Test_numberwidth_adjusted() call s:compare_lines(expect, lines) call s:close_windows() endfunc + +" This was causing a memcheck error +func Test_relativenumber_uninitialised() + new + set rnu + call setline(1, ["a", "b"]) + redraw + call feedkeys("j", 'xt') + redraw + bwipe! +endfunc