changeset 31513:2536ffb8fc37 v9.0.1089

patch 9.0.1089: unnessary assignment Commit: https://github.com/vim/vim/commit/c53e7904b9ac559c7ad6e3acb136027d10aed54e Author: Luuk van Baal <luukvbaal@gmail.com> Date: Fri Dec 23 12:17:33 2022 +0000 patch 9.0.1089: unnessary assignment Problem: unnessary assignment Solution: Remove the assignment. (Luuk van Baal, closes https://github.com/vim/vim/issues/1136)
author Bram Moolenaar <Bram@vim.org>
date Fri, 23 Dec 2022 13:30:03 +0100
parents eb5dcfa9eab0
children 987d3e4f566c
files src/memline.c src/version.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -316,9 +316,6 @@ ml_open(buf_T *buf)
 #endif
     buf->b_ml.ml_flags = ML_EMPTY;
     buf->b_ml.ml_line_count = 1;
-#ifdef FEAT_LINEBREAK
-    curwin->w_nrwidth_line_count = 0;
-#endif
 
 /*
  * fill block0 struct and write page 0
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1089,
+/**/
     1088,
 /**/
     1087,