From c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 10 Jan 2016 01:10:38 -0500 Subject: [PATCH] portability: use portable format specifier --- src/nvim/eval.c | 2 +- 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