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/eval.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/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7c3754607e..d5624f354a 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21783,7 +21783,7 @@ void ex_oldfiles(exarg_T *eap) nr = prompt_for_number(false); msg_starthere(); if (nr > 0 && nr <= l->lv_len) { - const char *const p = tv_list_find_str(l, nr); + const char *const p = tv_list_find_str(l, nr - 1); if (p == NULL) { return; } |