To: vim_dev@googlegroups.com Subject: Patch 8.1.1926 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///