mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +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:
@@ -238,9 +238,8 @@ int win_chartabsize(win_T *wp, char *p, colnr_T col)
|
||||
buf_T *buf = wp->w_buffer;
|
||||
if (*p == TAB && (!wp->w_p_list || wp->w_p_lcs_chars.tab1)) {
|
||||
return tabstop_padding(col, buf->b_p_ts, buf->b_p_vts_array);
|
||||
} else {
|
||||
return ptr2cells(p);
|
||||
}
|
||||
return ptr2cells(p);
|
||||
}
|
||||
|
||||
/// Return the number of characters the string 's' will take on the screen,
|
||||
|
Reference in New Issue
Block a user