aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
committerAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
commit9925b3a0477e5af348a8348544e69a65a9222c1b (patch)
tree467cdcd1d1f9f6662aa7ea9331f4ddceacbdbfb8 /src/nvim/edit.c
parentc0a668aa26a01145bee1d8162e14bacd0a10eca2 (diff)
downloadrneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.gz
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.bz2
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.zip
Remove redundant casts
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index c6716dc870..14b3968f2d 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -545,7 +545,7 @@ edit (
mincol = curwin->w_wcol;
validate_cursor_col();
- if ((int)curwin->w_wcol < mincol - curbuf->b_p_ts
+ if (curwin->w_wcol < mincol - curbuf->b_p_ts
&& curwin->w_wrow == curwin->w_winrow
+ curwin->w_height - 1 - p_so
&& (curwin->w_cursor.lnum != curwin->w_topline
@@ -4893,7 +4893,7 @@ insertchar (
return;
/* Check whether this character should end a comment. */
- if (did_ai && (int)c == end_comment_pending) {
+ if (did_ai && c == end_comment_pending) {
char_u *line;
char_u lead_end[COM_MAX_LEN]; /* end-comment string */
int middle_len, end_len;