]> granicus.if.org Git - vim/commitdiff
patch 8.2.3354: build failure with +byte_offset but without +textprop v8.2.3354
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Aug 2021 20:18:04 +0000 (22:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Aug 2021 20:18:04 +0000 (22:18 +0200)
Problem:    Build failure with +byte_offset but without +textprop. (John
            Marriott)
Solution:   Adjust the #ifdef.

src/memline.c
src/version.c

index 40eecea6ce5cb4998f4b9c89df8a552c3b4171ef..f4649841fb526966b92083e1a161b160b91b978c 100644 (file)
@@ -3977,7 +3977,7 @@ ml_flush_line(buf_T *buf)
             */
            if ((int)dp->db_free >= extra)
            {
-#ifdef FEAT_BYTEOFF
+#if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP)
                int old_prop_len = 0;
 #endif
                // if the length changes and there are following lines
@@ -3998,7 +3998,7 @@ ml_flush_line(buf_T *buf)
                // adjust free space
                dp->db_free -= extra;
                dp->db_txt_start -= extra;
-#ifdef FEAT_BYTEOFF
+#if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP)
                if (buf->b_has_textprop)
                    old_prop_len = old_len - STRLEN(new_line) - 1;
 #endif
@@ -4006,7 +4006,7 @@ ml_flush_line(buf_T *buf)
                // copy new line into the data block
                mch_memmove(old_line - extra, new_line, (size_t)new_len);
                buf->b_ml.ml_flags |= (ML_LOCKED_DIRTY | ML_LOCKED_POS);
-#ifdef FEAT_BYTEOFF
+#if defined(FEAT_BYTEOFF) && defined(FEAT_PROP_POPUP)
                // The else case is already covered by the insert and delete
                if (buf->b_has_textprop)
                {
index f2ac23782574d53d16c47a90aef0cd997b5e72e2..eed8bb0d9619ea7481a3110d262b92374af7597e 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3354,
 /**/
     3353,
 /**/