diff options
author | James McCoy <jamessan@jamessan.com> | 2016-03-25 14:17:10 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-03-30 08:30:35 -0400 |
commit | 5f0c76b243aca8d5fcab15c24bf2b0ba33852155 (patch) | |
tree | 6b060737edf2481b93e674add7a8c0e23dc98a9b /test/functional/legacy/105_filename_modifiers_spec.lua | |
parent | a9e0d734d7b4aa6e6cd77e1834bbc7c6b59c716c (diff) | |
download | rneovim-5f0c76b243aca8d5fcab15c24bf2b0ba33852155.tar.gz rneovim-5f0c76b243aca8d5fcab15c24bf2b0ba33852155.tar.bz2 rneovim-5f0c76b243aca8d5fcab15c24bf2b0ba33852155.zip |
vim-patch:7.4.1641
Problem: Using unterminated string.
Solution: Add NUL before calling vim_strsave_shellescape(). (James McCoy)
https://github.com/vim/vim/commit/5ca84ce4aa2832041f843e624c222bbc1f4d3e14
Diffstat (limited to 'test/functional/legacy/105_filename_modifiers_spec.lua')
-rw-r--r-- | test/functional/legacy/105_filename_modifiers_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/legacy/105_filename_modifiers_spec.lua b/test/functional/legacy/105_filename_modifiers_spec.lua index 3413667022..5ce2024889 100644 --- a/test/functional/legacy/105_filename_modifiers_spec.lua +++ b/test/functional/legacy/105_filename_modifiers_spec.lua @@ -43,6 +43,7 @@ describe('filename modifiers', function() execute([=[Put fnamemodify('abc'' ''def', ':S' )]=]) execute([=[Put fnamemodify('abc''%''def', ':S' )]=]) execute([=[Put fnamemodify("abc\ndef", ':S' )]=]) + execute([=[Put expand('%:r:S') == shellescape(expand('%:r'))]=]) execute([=[set shell=tcsh]=]) execute([=[Put fnamemodify("abc\ndef", ':S' )]=]) execute([=[1 delete _]=]) @@ -76,6 +77,7 @@ describe('filename modifiers', function() fnamemodify('abc'' ''def', ':S' ) '''abc''\'''' ''\''''def''' fnamemodify('abc''%''def', ':S' ) '''abc''\''''%''\''''def''' fnamemodify("abc\ndef", ':S' ) '''abc^@def''' + expand('%:r:S') == shellescape(expand('%:r')) 1 fnamemodify("abc\ndef", ':S' ) '''abc\^@def''']=]) end) end) |