0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4610: some conditions are always true

Problem:    Some conditions are always true.
Solution:   Remove the useless conditions. (closes #9993)
This commit is contained in:
Bram Moolenaar
2022-03-22 20:42:12 +00:00
parent 6f2465d336
commit fe154990c1
13 changed files with 18 additions and 23 deletions

View File

@@ -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