diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-04 19:33:36 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:06 +0300 |
commit | e5edf07ec44f8d147d7482cae2997be62c30373f (patch) | |
tree | 2f296ffb3eef85155c26baac37ff518df952a8b2 /src/nvim/ex_docmd.c | |
parent | b3672ae2fced4715963442d2e19048f8fadbe0b8 (diff) | |
download | rneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.tar.gz rneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.tar.bz2 rneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.zip |
unittests: Add tests for tv_list_find*() functions
Additional modifications:
- More `const` qualifiers in tested functions.
- `tv_list_find_str()` second argument is more in-line with other
`tv_list_find*()` functions.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 73b81ac2d9..26cfec991f 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -8424,7 +8424,7 @@ eval_vars ( return NULL; } result = (char_u *)tv_list_find_str(get_vim_var_list(VV_OLDFILES), - (long)i); + i - 1); if (result == NULL) { *errormsg = (char_u *)""; return NULL; |