diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-11-16 14:30:20 -0500 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-06-04 22:12:14 -0400 |
| commit | c3efb2804a6bcf3b61695cd2b0c60bb16f1ec0a9 (patch) | |
| tree | b9ac4be6d77f1a0afc97cd92b928eff08d68ade8 /src/nvim/testdir | |
| parent | 9c01efd6fb7cc01b779ffb6d435f84e0a8e5f22d (diff) | |
| download | rneovim-c3efb2804a6bcf3b61695cd2b0c60bb16f1ec0a9.tar.gz rneovim-c3efb2804a6bcf3b61695cd2b0c60bb16f1ec0a9.tar.bz2 rneovim-c3efb2804a6bcf3b61695cd2b0c60bb16f1ec0a9.zip | |
vim-patch:7.4.2029
Problem: printf() does not work with 64 bit numbers.
Solution: use the "L" length modifier. (Ken Takata)
https://github.com/vim/vim/commit/38ee6b041e73ad31c3b6b99d56d20833b59b2b57
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_expr.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim index 25cbd60114..04979b867f 100644 --- a/src/nvim/testdir/test_expr.vim +++ b/src/nvim/testdir/test_expr.vim @@ -121,6 +121,12 @@ func Test_option_value() set cpo&vim endfunc +function Test_printf_64bit() + if has('num64') + call assert_equal("123456789012345", printf('%d', 123456789012345)) + endif +endfunc + func Test_setmatches() hi def link 1 Comment hi def link 2 PreProc |