aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-16 21:17:08 +0300
committerZyX <kp-pav@yandex.ru>2017-04-16 21:17:08 +0300
commita65867542d291cda6cdd68e56e0d5d3866dbbb72 (patch)
tree5fd7efcf057b0f1661e5d1a0136ef28371066936
parentb396a3f72edb3fb345e516a12b92991b249da572 (diff)
downloadrneovim-a65867542d291cda6cdd68e56e0d5d3866dbbb72.tar.gz
rneovim-a65867542d291cda6cdd68e56e0d5d3866dbbb72.tar.bz2
rneovim-a65867542d291cda6cdd68e56e0d5d3866dbbb72.zip
screen: Remove unneeded check
-rw-r--r--src/nvim/screen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index febca105e9..79596f73cd 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -1016,9 +1016,7 @@ static void win_update(win_T *wp)
linenr_T from, to;
if (VIsual_active) {
- if (VIsual_active
- && (VIsual_mode != wp->w_old_visual_mode
- || type == INVERTED_ALL)) {
+ if (VIsual_mode != wp->w_old_visual_mode || type == INVERTED_ALL) {
/*
* If the type of Visual selection changed, redraw the whole
* selection. Also when the ownership of the X selection is