]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0126: textprop test fails v8.2.0126
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Jan 2020 20:00:59 +0000 (21:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Jan 2020 20:00:59 +0000 (21:00 +0100)
Problem:    Textprop test fails.
Solution:   Fix sign in computation.

src/memline.c
src/version.c

index 2c4153946ee490968c8bd27fd6bc0527ce487dc9..aeb8afeaa073945082f0e0c965ef4f79f4baba5e 100644 (file)
@@ -5774,7 +5774,7 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
                if (!(offset >= size
                        + text_end - (int)((dp->db_index[idx]) & DB_INDEX_MASK)
 #ifdef FEAT_PROP_POPUP
-                       - (long)(textprop_total - textprop_size)
+                       - (long)(textprop_total + textprop_size)
 #endif
                        + ffdos))
                    break;
index 1ed040d3280ccea6323a5741f70b96ef1d1e1910..71aecc8a7473d7b17ada19637f2db7103755cb10 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    126,
 /**/
     125,
 /**/