mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user