summaryrefslogtreecommitdiff
path: root/src/drawscreen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-22 20:42:12 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-22 20:42:12 +0000
commitfe154990c1c57fac6d5a4b1bfb682e27adb4eb8c (patch)
treef2bbad2d3535a267d934e85eeadf1d652936d5eb /src/drawscreen.c
parent6f2465d336a9d4afe392db4084ef7e9db17e67c1 (diff)
downloadvim-git-fe154990c1c57fac6d5a4b1bfb682e27adb4eb8c.tar.gz
patch 8.2.4610: some conditions are always truev8.2.4610
Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index cdfcac04d..a562c4d84 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -1950,9 +1950,8 @@ win_update(win_T *wp)
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