aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-28 22:55:08 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-28 23:44:36 -0400
commitd6b31721bfadabf5eaa817321706d403ecfbf805 (patch)
treed01e9813023327387ab0d9a71d43633519cf297a /src/nvim/ops.c
parentb388f462669199386a967afba6e299a033d37833 (diff)
downloadrneovim-d6b31721bfadabf5eaa817321706d403ecfbf805.tar.gz
rneovim-d6b31721bfadabf5eaa817321706d403ecfbf805.tar.bz2
rneovim-d6b31721bfadabf5eaa817321706d403ecfbf805.zip
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 vim/vim#3982) https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c Neovim code style requires the opposite. Add curly braces to minimize lint errors when applying Vim patches.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 6709e52679..35ab9c4d84 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -2519,9 +2519,9 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append)
endcol = (colnr_T)STRLEN(p);
if (startcol > endcol
|| is_oneChar
- )
+ ) {
bd.textlen = 0;
- else {
+ } else {
bd.textlen = endcol - startcol + oap->inclusive;
}
bd.textstart = p + startcol;