mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
Remove unnecessary (int) casts and fix style
This commit is contained in:

committed by
Brandon Coleman

parent
7f21665673
commit
18b64c99cc
@@ -151,7 +151,6 @@ int decl(pos_T *lp)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
* Return TRUE when 'shell' has "csh" in the tail.
|
||||
*/
|
||||
int csh_like_shell(void)
|
||||
|
@@ -1736,7 +1736,7 @@ static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T h
|
||||
if (n > wp->w_width)
|
||||
n = wp->w_width;
|
||||
screen_fill(wp->w_winrow + row, wp->w_winrow + endrow,
|
||||
wp->w_wincol, (int)wp->w_wincol + n,
|
||||
wp->w_wincol, wp->w_wincol + n,
|
||||
cmdwin_type, ' ', hl_attr(HLF_AT));
|
||||
}
|
||||
if (wp->w_p_fdc > 0) {
|
||||
@@ -1746,7 +1746,7 @@ static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T h
|
||||
if (nn > wp->w_width)
|
||||
nn = wp->w_width;
|
||||
screen_fill(wp->w_winrow + row, wp->w_winrow + endrow,
|
||||
wp->w_wincol + n, (int)wp->w_wincol + nn,
|
||||
wp->w_wincol + n, wp->w_wincol + nn,
|
||||
' ', ' ', hl_attr(HLF_FC));
|
||||
n = nn;
|
||||
}
|
||||
@@ -1760,7 +1760,7 @@ static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T h
|
||||
nn = wp->w_width;
|
||||
}
|
||||
screen_fill(wp->w_winrow + row, wp->w_winrow + endrow,
|
||||
wp->w_wincol + n, (int)wp->w_wincol + nn,
|
||||
wp->w_wincol + n, wp->w_wincol + nn,
|
||||
' ', ' ', hl_attr(HLF_SC));
|
||||
n = nn;
|
||||
}
|
||||
@@ -2083,8 +2083,8 @@ static void fold_line(win_T *wp, long fold_count, foldinfo_T *foldinfo, linenr_T
|
||||
ScreenAttrs[off + txtcol], hl_attr(HLF_CUC));
|
||||
}
|
||||
|
||||
SCREEN_LINE(row + wp->w_winrow, wp->w_wincol, (int)wp->w_width,
|
||||
(int)wp->w_width, FALSE);
|
||||
SCREEN_LINE(row + wp->w_winrow, wp->w_wincol, wp->w_width,
|
||||
wp->w_width, FALSE);
|
||||
|
||||
/*
|
||||
* Update w_cline_height and w_cline_folded if the cursor line was
|
||||
@@ -2862,8 +2862,7 @@ win_line (
|
||||
&& lnum == wp->w_cursor.lnum && vcol >= (long)wp->w_virtcol
|
||||
&& filler_todo <= 0
|
||||
) {
|
||||
SCREEN_LINE(screen_row, wp->w_wincol, col, -(int)wp->w_width,
|
||||
wp->w_p_rl);
|
||||
SCREEN_LINE(screen_row, wp->w_wincol, col, -wp->w_width, wp->w_p_rl);
|
||||
/* Pretend we have finished updating the window. Except when
|
||||
* 'cursorcolumn' is set. */
|
||||
if (wp->w_p_cuc)
|
||||
@@ -3802,8 +3801,7 @@ win_line (
|
||||
}
|
||||
}
|
||||
|
||||
SCREEN_LINE(screen_row, wp->w_wincol, col,
|
||||
(int)wp->w_width, wp->w_p_rl);
|
||||
SCREEN_LINE(screen_row, wp->w_wincol, col, wp->w_width, wp->w_p_rl);
|
||||
row++;
|
||||
|
||||
/*
|
||||
@@ -4022,7 +4020,7 @@ win_line (
|
||||
|| (n_extra != 0 && (c_extra != NUL || *p_extra != NUL)))
|
||||
) {
|
||||
SCREEN_LINE(screen_row, wp->w_wincol, col - boguscols,
|
||||
(int)wp->w_width, wp->w_p_rl);
|
||||
wp->w_width, wp->w_p_rl);
|
||||
boguscols = 0;
|
||||
++row;
|
||||
++screen_row;
|
||||
@@ -4876,8 +4874,8 @@ void win_redr_status(win_T *wp)
|
||||
fillchar = fillchar_status(&attr, wp == curwin);
|
||||
else
|
||||
fillchar = fillchar_vsep(&attr);
|
||||
screen_putchar(fillchar, wp->w_winrow + wp->w_height, W_ENDCOL(wp),
|
||||
attr);
|
||||
screen_putchar(fillchar, wp->w_winrow + wp->w_height,
|
||||
W_ENDCOL(wp), attr);
|
||||
}
|
||||
busy = FALSE;
|
||||
}
|
||||
|
@@ -242,7 +242,6 @@ enum {
|
||||
#define EXMODE_NORMAL 1
|
||||
#define EXMODE_VIM 2
|
||||
|
||||
|
||||
#ifdef NO_EXPANDPATH
|
||||
# define gen_expand_wildcards mch_expand_wildcards
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user