mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
refactor: fix clang-tidy warnings
Enable and fix bugprone-misplaced-widening-cast warning. Fix some modernize-macro-to-enum and readability-else-after-return warnings, but don't enable them. While the warnings can be useful, they are in general too noisy to enable.
This commit is contained in:
@@ -1479,9 +1479,8 @@ const void *mark_jumplist_iter(const void *const iter, const win_T *const win, x
|
||||
*fm = *iter_mark;
|
||||
if (iter_mark == &(win->w_jumplist[win->w_jumplistlen - 1])) {
|
||||
return NULL;
|
||||
} else {
|
||||
return iter_mark + 1;
|
||||
}
|
||||
return iter_mark + 1;
|
||||
}
|
||||
|
||||
/// Iterate over global marks
|
||||
|
||||
Reference in New Issue
Block a user