patch 9.0.0809: test for job writing to buffer fails

Problem:    Test for job writing to buffer fails.
Solution:   Correct w_topline when deleting a buffer line.
diff --git a/src/evalbuffer.c b/src/evalbuffer.c
index 3527737..e77435b 100644
--- a/src/evalbuffer.c
+++ b/src/evalbuffer.c
@@ -571,10 +571,13 @@
 	    {
 		if (wp->w_cursor.lnum > last)
 		    wp->w_cursor.lnum -= count;
-		else if (wp->w_cursor.lnum> first)
+		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);
diff --git a/src/version.c b/src/version.c
index 21ff6c2..94e5d5c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    809,
+/**/
     808,
 /**/
     807,