mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:8.2.0316: ex_getln.c code has insufficient test coverage
Problem: ex_getln.c code has insufficient test coverage.
Solution: Add more tests. Fix a problem. (Yegappan Lakshmanan, closes vim/vim#5693)
8d588ccee5
This commit is contained in:
@@ -6293,7 +6293,7 @@ static int calc_hist_idx(int histype, int num)
|
||||
wrapped = TRUE;
|
||||
}
|
||||
}
|
||||
if (hist[i].hisnum == num && hist[i].hisstr != NULL) {
|
||||
if (i >= 0 && hist[i].hisnum == num && hist[i].hisstr != NULL) {
|
||||
return i;
|
||||
}
|
||||
} else if (-num <= hislen) {
|
||||
|
Reference in New Issue
Block a user