Patch 8.1.1926
Problem:    Cursorline not redrawn when putting a line above the cursor.
Solution:   Redraw when the curor line is below a change. (closes #4862)
Files:      src/change.c


*** ../vim-8.1.1925/src/change.c        2019-08-21 14:36:29.383376114 +0200
--- src/change.c        2019-08-25 14:48:29.324995647 +0200
***************
*** 541,547 ****
                    changed_line_abv_curs_win(wp);
            }
  #endif
- 
            if (wp->w_cursor.lnum > lnum)
                changed_line_abv_curs_win(wp);
            else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col)
--- 541,546 ----
***************
*** 592,599 ****
            if (hasAnyFolding(wp))
                set_topline(wp, wp->w_topline);
  #endif
!           // relative numbering may require updating more
!           if (wp->w_p_rnu)
                redraw_win_later(wp, SOME_VALID);
        }
      }
--- 591,604 ----
            if (hasAnyFolding(wp))
                set_topline(wp, wp->w_topline);
  #endif
!           // Relative numbering may require updating more.  Cursor line
!           // highlighting probably needs to be updated if it's below the
!           // change.
!           if (wp->w_p_rnu
! #ifdef FEAT_SYN_HL
!                   || (wp->w_p_cul && lnum <= wp->w_last_cursorline)
! #endif
!                   )
                redraw_win_later(wp, SOME_VALID);
        }
      }
*** ../vim-8.1.1925/src/version.c       2019-08-24 22:58:08.307264136 +0200
--- src/version.c       2019-08-25 14:33:52.550020310 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     1926,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
116. You are living with your boyfriend who networks your respective
     computers so you can sit in separate rooms and email each other

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/201908251249.x7PCn8Gd013788%40masaka.moolenaar.net.

Raspunde prin e-mail lui