Patch 8.2.2863 (after 8.2.2862)
Problem:    Removing a text property does not redraw optimally.
Solution:   Only redraw the lines that mithg actually have been changed.
Files:      src/textprop.c


*** ../vim-8.2.2862/src/textprop.c      2021-05-17 00:15:14.187426847 +0200
--- src/textprop.c      2021-05-17 00:20:20.058087286 +0200
***************
*** 815,820 ****
--- 815,822 ----
      linenr_T  start = 1;
      linenr_T  end = 0;
      linenr_T  lnum;
+     linenr_T  first_changed = 0;
+     linenr_T  last_changed = 0;
      dict_T    *dict;
      buf_T     *buf = curbuf;
      int               do_all;
***************
*** 925,930 ****
--- 927,935 ----
                    buf->b_ml.ml_line_len -= sizeof(textprop_T);
                    --idx;
  
+                   if (first_changed == 0)
+                       first_changed = lnum;
+                   last_changed = lnum;
                    ++rettv->vval.v_number;
                    if (!do_all)
                        break;
***************
*** 932,946 ****
            }
        }
      }
!     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);
!       }
      }
  }
  
--- 937,946 ----
            }
        }
      }
!     if (first_changed > 0)
      {
!       changed_lines_buf(buf, first_changed, last_changed + 1, 0);
!       redraw_buf_later(buf, VALID);
      }
  }
  
*** ../vim-8.2.2862/src/version.c       2021-05-17 00:15:14.187426847 +0200
--- src/version.c       2021-05-17 00:21:34.393761883 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2863,
  /**/

-- 
ZOOT:  I'm afraid our life must seem very dull and quiet compared to yours.
       We are but eightscore young blondes, all between sixteen and
       nineteen-and-a-half, cut off in this castle, with no one to protect us.
       Oooh.  It is a lonely life ... bathing ...  dressing ... undressing ...
       making exciting underwear....
                 "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/202105162222.14GMMcLF3672918%40masaka.moolenaar.net.

Raspunde prin e-mail lui