aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-17 04:04:27 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-17 04:04:27 -0500
commit9198b06ea67973905f2d6cbaadd56b1c21a64373 (patch)
tree7ccc57d268686a65ad3f5d52774e0c1552ab8280 /src/nvim/search.c
parent560a346d57f29ff549047b6d9e4434ddc6a3d0ed (diff)
parent14c543231cfb1c34143d5d014c59f2b41cedffc3 (diff)
downloadrneovim-9198b06ea67973905f2d6cbaadd56b1c21a64373.tar.gz
rneovim-9198b06ea67973905f2d6cbaadd56b1c21a64373.tar.bz2
rneovim-9198b06ea67973905f2d6cbaadd56b1c21a64373.zip
Merge pull request #4229 from jbradaric/vim-7.4.847
vim-patch:7.4.847
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 827473e55d..fffae1ecb2 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -3144,10 +3144,12 @@ current_block (
}
if (VIsual_active) {
- if (*p_sel == 'e')
- ++curwin->w_cursor.col;
- if (sol && gchar_cursor() != NUL)
- inc(&curwin->w_cursor); /* include the line break */
+ if (*p_sel == 'e') {
+ inc(&curwin->w_cursor);
+ }
+ if (sol && gchar_cursor() != NUL) {
+ inc(&curwin->w_cursor); // include the line break
+ }
VIsual = start_pos;
VIsual_mode = 'v';
redraw_curbuf_later(INVERTED); /* update the inversion */