mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +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:
@@ -2713,9 +2713,8 @@ void ex_undojoin(exarg_T *eap)
|
||||
}
|
||||
if (get_undolevel(curbuf) < 0) {
|
||||
return; // no entries, nothing to do
|
||||
} else {
|
||||
curbuf->b_u_synced = false; // Append next change to last entry
|
||||
}
|
||||
curbuf->b_u_synced = false; // Append next change to last entry
|
||||
}
|
||||
|
||||
/// Called after writing or reloading the file and setting b_changed to false.
|
||||
|
Reference in New Issue
Block a user