neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 108368bdd5546319952767325c1a28de537fec75
parent e11f3655fb3bbedc29e496db26a25e6c83d25baf
Author: Javier Lopez <graulopezjavier@gmail.com>
Date:   Sat,  2 Jul 2022 11:24:58 -0500

fix(coverity): 353827 unnecessary null check #19209

Previous checks make sure the index is not out of bounds. Therefore jmp
is never NULL.
Diffstat:
Msrc/nvim/mark.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/mark.c b/src/nvim/mark.c @@ -280,7 +280,7 @@ fmark_T *get_jumplist(win_T *win, int count) } break; } - return jmp != NULL ? &jmp->fmark : NULL; + return &jmp->fmark; } /// Get mark in "count" position in the |changelist| relative to the current index.