summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-01-28 15:28:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 15:28:04 +0000
commit420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch)
tree89938a5800078e96cdf992aca87e1c79a2f255ac /src/drawscreen.c
parentfb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff)
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index d03c429cc7..5732b89ab0 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -538,7 +538,7 @@ win_redr_status(win_T *wp, int ignore_pum UNUSED)
this_ru_col + wp->w_wincol, fillchar, fillchar, attr);
if (get_keymap_str(wp, (char_u *)"<%s>", NameBuff, MAXPATHL)
- && (int)(this_ru_col - len) > (int)(STRLEN(NameBuff) + 1))
+ && (this_ru_col - len) > (int)(STRLEN(NameBuff) + 1))
screen_puts(NameBuff, row, (int)(this_ru_col - STRLEN(NameBuff)
- 1 + wp->w_wincol), attr);
@@ -797,7 +797,7 @@ win_redr_ruler(win_T *wp, int always, int ignore_pum)
i = redraw_cmdline;
screen_fill(row, row + 1,
this_ru_col + off + (int)STRLEN(buffer),
- (int)(off + width),
+ (off + width),
fillchar, fillchar, attr);
// don't redraw the cmdline because of showing the ruler
redraw_cmdline = i;
@@ -1038,8 +1038,7 @@ redraw_win_toolbar(win_T *wp)
}
wp->w_winbar_items[item_idx].wb_menu = NULL; // end marker
- screen_line(wp->w_winrow, wp->w_wincol, (int)wp->w_width,
- (int)wp->w_width, 0);
+ screen_line(wp->w_winrow, wp->w_wincol, wp->w_width, wp->w_width, 0);
}
#endif
@@ -1372,8 +1371,7 @@ fold_line(
}
#endif
- screen_line(row + W_WINROW(wp), wp->w_wincol, (int)wp->w_width,
- (int)wp->w_width, 0);
+ screen_line(row + W_WINROW(wp), wp->w_wincol, wp->w_width, wp->w_width, 0);
// Update w_cline_height and w_cline_folded if the cursor line was
// updated (saves a call to plines() later).