summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
commitabab0b0fdd6535969447b03a4fffc1947918cf6c (patch)
tree2d43537a5dce8433ef2b2a37684c9e069392c592 /src/ops.c
parentbd9bf266fccbf7b7f09e476e09b61f0133e914db (diff)
downloadvim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ops.c b/src/ops.c
index 1b39c3fb2..e939f0464 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -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';