mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
clang/'Logic error': avoid nullptr deref
mouse_find_win() can return NULL.
This commit is contained in:
@@ -748,7 +748,7 @@ int mouse_check_fold(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (mouse_char == wp->w_p_fcs_chars.foldclosed) {
|
||||
if (wp && mouse_char == wp->w_p_fcs_chars.foldclosed) {
|
||||
return MOUSE_FOLD_OPEN;
|
||||
} else if (mouse_char != ' ') {
|
||||
return MOUSE_FOLD_CLOSE;
|
||||
|
Reference in New Issue
Block a user