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 -- [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/20221020201619.D71A31C17E4%40moolenaar.net.

Raspunde prin e-mail lui