diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:10:38 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:34:49 -0500 |
commit | c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3 (patch) | |
tree | f5429f64a3641d852166d21d985d6d9ffe2bd3d3 | |
parent | 9bf694ff0bd6a4251758524f762847208618c8f3 (diff) | |
download | rneovim-c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3.tar.gz rneovim-c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3.tar.bz2 rneovim-c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3.zip |
portability: use portable format specifier
-rw-r--r-- | src/nvim/eval.c | 2 | ||||
-rw-r--r-- | test/functional/legacy/100_lispwords_spec.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 76708e21ad..d053bea6b5 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7999,7 +7999,7 @@ static void prepare_assert_error(garray_T *gap) } } if (sourcing_lnum > 0) { - vim_snprintf(buf, ARRAY_SIZE(buf), "line %ld", (long)sourcing_lnum); + vim_snprintf(buf, ARRAY_SIZE(buf), "line %" PRId64, (long)sourcing_lnum); ga_concat(gap, (char_u *)buf); } if (sourcing_name != NULL || sourcing_lnum > 0) { diff --git a/test/functional/legacy/100_lispwords_spec.lua b/test/functional/legacy/100_lispwords_spec.lua index ba2d485280..739a02f0b3 100644 --- a/test/functional/legacy/100_lispwords_spec.lua +++ b/test/functional/legacy/100_lispwords_spec.lua @@ -4,10 +4,10 @@ local helpers = require('test.functional.helpers') local source = helpers.source local clear, expect = helpers.clear, helpers.expect -describe('undolevel', function() +describe('lispwords', function() setup(clear) - it('is working', function() + it('global-local', function() source([[ setglobal lispwords=foo,bar,baz setlocal lispwords-=foo |