To: vim_dev@googlegroups.com Subject: Patch 9.0.0809 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0809 (after 9.0.0807) Problem: Test for job writing to buffer fails. Solution: Correct w_topline when deleting a buffer line. Files: src/evalbuffer.c *** ../vim-9.0.0808/src/evalbuffer.c 2022-09-08 13:42:50.296283575 +0100 --- src/evalbuffer.c 2022-10-20 21:11:02.176271323 +0100 *************** *** 571,580 **** { if (wp->w_cursor.lnum > last) wp->w_cursor.lnum -= count; ! else if (wp->w_cursor.lnum> first) wp->w_cursor.lnum = first; if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) wp->w_cursor.lnum = wp->w_buffer->b_ml.ml_line_count; } check_cursor_col(); deleted_lines_mark(first, count); --- 571,583 ---- { if (wp->w_cursor.lnum > last) wp->w_cursor.lnum -= count; ! else if (wp->w_cursor.lnum > first) wp->w_cursor.lnum = first; if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) wp->w_cursor.lnum = wp->w_buffer->b_ml.ml_line_count; + wp->w_valid = 0; + if (wp->w_cursor.lnum <= wp->w_topline) + wp->w_topline = 1; } check_cursor_col(); deleted_lines_mark(first, count); *** ../vim-9.0.0808/src/version.c 2022-10-20 20:52:40.966895999 +0100 --- src/version.c 2022-10-20 21:13:10.204152882 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 809, /**/ -- It might look like I'm doing nothing, but at the cellular level I'm really quite busy. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///