comparison 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
comparison
equal deleted inserted replaced
17285:413d523503a2 17286:a513b81d3689
250 \ " 0 aaaa", 250 \ " 0 aaaa",
251 \ ] 251 \ ]
252 call s:compare_lines(expect, lines) 252 call s:compare_lines(expect, lines)
253 call s:close_windows() 253 call s:close_windows()
254 endfunc 254 endfunc
255
256 " This was causing a memcheck error
257 func Test_relativenumber_uninitialised()
258 new
259 set rnu
260 call setline(1, ["a", "b"])
261 redraw
262 call feedkeys("j", 'xt')
263 redraw
264 bwipe!
265 endfunc