Patch 8.2.2862
Problem:    Removing a text property causes the whole window to be redawn.
Solution:   Use changed_lines_buf() to only redraw the affected lines.
Files:      src/textprop.c


*** ../vim-8.2.2861/src/textprop.c      2021-05-16 20:18:51.029536617 +0200
--- src/textprop.c      2021-05-17 00:12:04.780257074 +0200
***************
*** 933,939 ****
        }
      }
      if (rettv->vval.v_number > 0)
!       redraw_buf_later(buf, NOT_VALID);
  }
  
  /*
--- 933,947 ----
        }
      }
      if (rettv->vval.v_number > 0)
!     {
!       if (start == 1 && end == buf->b_ml.ml_line_count)
!           redraw_buf_later(buf, NOT_VALID);
!       else
!       {
!           changed_lines_buf(buf, start, end + 1, 0);
!           redraw_buf_later(buf, VALID);
!       }
!     }
  }
  
  /*
*** ../vim-8.2.2861/src/version.c       2021-05-17 00:01:38.807009262 +0200
--- src/version.c       2021-05-17 00:14:35.095598146 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2862,
  /**/

-- 
   GALAHAD turns back.  We see from his POV the lovely ZOOT standing by him
   smiling enchantingly and a number of equally delectable GIRLIES draped
   around in the seductively poulticed room.  They look at him smilingly and
   wave.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202105162217.14GMHQaj3671917%40masaka.moolenaar.net.

Raspunde prin e-mail lui