diff options
author | James McCoy <jamessan@jamessan.com> | 2017-06-06 05:28:23 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-06-06 06:15:16 -0400 |
commit | 9a21d89b17e0f22861dbc1d819e2356fac40fad4 (patch) | |
tree | 94200eb4ca79e484fde59004955f7d4265ea94e0 | |
parent | 5f8411b7bf706210a4ff0960032389d015b88b16 (diff) | |
download | rneovim-9a21d89b17e0f22861dbc1d819e2356fac40fad4.tar.gz rneovim-9a21d89b17e0f22861dbc1d819e2356fac40fad4.tar.bz2 rneovim-9a21d89b17e0f22861dbc1d819e2356fac40fad4.zip |
vim-patch:8.0.0561
Problem: Undefined behavior when using backslash after empty line.
Solution: Check for an empty line. (Dominique Pelle, closes vim/vim#1631)
https://github.com/vim/vim/commit/478af67dd6a9adc456464c3736bda328ae3a28cb
-rw-r--r-- | src/nvim/testdir/test_vimscript.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim index b7d12d8c93..da3adf5e2b 100644 --- a/src/nvim/testdir/test_vimscript.vim +++ b/src/nvim/testdir/test_vimscript.vim @@ -1136,6 +1136,17 @@ func Test_script_lines() endfunc "------------------------------------------------------------------------------- +" Test 96: line continuation {{{1 +" +" Undefined behavior was detected by ubsan with line continuation +" after an empty line. +"------------------------------------------------------------------------------- +func Test_script_emty_line_continuation() + + \ +endfunc + +"------------------------------------------------------------------------------- " Modelines {{{1 " vim: ts=8 sw=4 tw=80 fdm=marker " vim: fdt=substitute(substitute(foldtext(),\ '\\%(^+--\\)\\@<=\\(\\s*\\)\\(.\\{-}\\)\:\ \\%(\"\ \\)\\=\\(Test\ \\d*\\)\:\\s*',\ '\\3\ (\\2)\:\ \\1',\ \"\"),\ '\\(Test\\s*\\)\\(\\d\\)\\D\\@=',\ '\\1\ \\2',\ "") |