1
0
forked from aniani/vim

patch 8.1.1086: too many curly braces

Problem:    Too many curly braces.
Solution:   Remove curly braces where they are not needed. (Hirohito Higashi,
            closes #3982)
This commit is contained in:
Bram Moolenaar
2019-03-30 18:47:01 +01:00
parent bd9bf266fc
commit abab0b0fdd
42 changed files with 26 additions and 189 deletions

View File

@@ -259,9 +259,7 @@ op_shift(oparg_T *oap, int curs_top, int amount)
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
if (first_char != '#' || !preprocs_left())
#endif
{
shift_line(oap->op_type == OP_LSHIFT, p_sr, amount, FALSE);
}
++curwin->w_cursor.lnum;
}
@@ -3157,9 +3155,7 @@ op_yank(oparg_T *oap, int deleting, int mess)
if (startcol > endcol || is_oneChar)
bd.textlen = 0;
else
{
bd.textlen = endcol - startcol + oap->inclusive;
}
bd.textstart = p + startcol;
if (yank_copy_line(&bd, y_idx) == FAIL)
goto fail;
@@ -4391,9 +4387,7 @@ skip_comment(
{
if (*comment_flags == COM_END
|| *comment_flags == ':')
{
break;
}
++comment_flags;
}
@@ -5851,9 +5845,7 @@ do_addsub(
goto theend;
ptr = buf1;
if (negative && (!visual || was_positive))
{
*ptr++ = '-';
}
if (pre)
{
*ptr++ = '0';