diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2018-01-26 20:25:53 +0100 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2018-05-23 22:07:27 +0200 |
commit | 37b8e95fd69ba4991454f79802bfe1bccf7c827a (patch) | |
tree | b75965914390d1a13478ec244eee898bc49b6214 /src/nvim/ops.c | |
parent | 8bcc01195968b84d1a74ecb82598bdf538004404 (diff) | |
download | rneovim-37b8e95fd69ba4991454f79802bfe1bccf7c827a.tar.gz rneovim-37b8e95fd69ba4991454f79802bfe1bccf7c827a.tar.bz2 rneovim-37b8e95fd69ba4991454f79802bfe1bccf7c827a.zip |
Lint
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 692713af73..c9e8344ac1 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -632,12 +632,13 @@ void op_reindent(oparg_T *oap, Indenter how) /* Mark changed lines so that they will be redrawn. When Visual * highlighting was present, need to continue until the last line. When * there is no change still need to remove the Visual highlighting. */ - if (last_changed != 0) + if (last_changed != 0) { changed_lines(first_changed, 0, oap->is_VIsual ? start_lnum + oap->line_count : last_changed + 1, 0L, true); - else if (oap->is_VIsual) + } else if (oap->is_VIsual) { redraw_curbuf_later(INVERTED); + } if (oap->line_count > p_report) { i = oap->line_count - (i + 1); @@ -1856,8 +1857,9 @@ void op_tilde(oparg_T *oap) did_change |= one_change; } - if (did_change) + if (did_change) { changed_lines(oap->start.lnum, 0, oap->end.lnum + 1, 0L, true); + } } else { // not block mode if (oap->motion_type == kMTLineWise) { oap->start.col = 0; |