comparison src/testdir/test_shortpathname.vim @ 28021:d4b549180a07 v8.2.4535

patch 8.2.4535: filename modifer ":8" removes the filename Commit: https://github.com/vim/vim/commit/81da16b53fbf804a3cd32bc15313c96444b71484 Author: Christian Brabandt <cb@256bit.org> Date: Thu Mar 10 12:24:02 2022 +0000 patch 8.2.4535: filename modifer ":8" removes the filename Problem: Filename modifer ":8" removes the filename. Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt, closes #9918, closes #8600)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Mar 2022 13:30:16 +0100
parents 08940efa6b4e
children 61b400b5e1a8
comparison
equal deleted inserted replaced
28020:edaa0c170c11 28021:d4b549180a07
86 86
87 call delete(file) 87 call delete(file)
88 call delete(dir, 'd') 88 call delete(dir, 'd')
89 endfunc 89 endfunc
90 90
91 func Test_ColonEight_notexists()
92 let non_exists='C:\windows\newfile.txt'
93 call assert_equal(non_exists, fnamemodify(non_exists, ':p:8'))
94 endfunc
95
91 " vim: shiftwidth=2 sts=2 expandtab 96 " vim: shiftwidth=2 sts=2 expandtab