mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28: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:
@@ -762,12 +762,11 @@ static bool pum_set_selected(int n, int repeat)
|
||||
if (e == NULL) {
|
||||
ml_append(lnum++, (char *)p, 0, false);
|
||||
break;
|
||||
} else {
|
||||
*e = NUL;
|
||||
ml_append(lnum++, (char *)p, (int)(e - p + 1), false);
|
||||
*e = '\n';
|
||||
p = e + 1;
|
||||
}
|
||||
*e = NUL;
|
||||
ml_append(lnum++, (char *)p, (int)(e - p + 1), false);
|
||||
*e = '\n';
|
||||
p = e + 1;
|
||||
}
|
||||
|
||||
// Increase the height of the preview window to show the
|
||||
|
Reference in New Issue
Block a user