mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
refactor(clang-tidy): remove redundant casts
This commit is contained in:
@@ -4037,7 +4037,7 @@ int do_join(size_t count, int insert_space, int save_undo, int use_formatoptions
|
||||
// Don't move anything, just compute the final line length
|
||||
// and setup the array of space strings lengths
|
||||
for (t = 0; t < (linenr_T)count; t++) {
|
||||
curr_start = ml_get((linenr_T)(curwin->w_cursor.lnum + t));
|
||||
curr_start = ml_get(curwin->w_cursor.lnum + t);
|
||||
curr = curr_start;
|
||||
if (t == 0 && setmark && (cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0) {
|
||||
// Set the '[ mark.
|
||||
@@ -5555,7 +5555,7 @@ void cursor_pos_info(dict_T *dict)
|
||||
// Don't shorten this message, the user asked for it.
|
||||
tv_dict_add_nr(dict, S_LEN("words"), word_count);
|
||||
tv_dict_add_nr(dict, S_LEN("chars"), char_count);
|
||||
tv_dict_add_nr(dict, S_LEN("bytes"), (varnumber_T)(byte_count + bom_count));
|
||||
tv_dict_add_nr(dict, S_LEN("bytes"), byte_count + bom_count);
|
||||
|
||||
STATIC_ASSERT(sizeof("visual") == sizeof("cursor"),
|
||||
"key_len argument in tv_dict_add_nr is wrong");
|
||||
|
Reference in New Issue
Block a user