Mercurial > vim
diff src/ops.c @ 16162:cd5c83115ec6 v8.1.1086
patch 8.1.1086: too many curly braces
commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 18:47:01 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 19:00:07 +0100 |
parents | a14d8b4ef2b0 |
children | a1229400434a |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -259,9 +259,7 @@ op_shift(oparg_T *oap, int curs_top, int #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 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';