Hi all,

The attached patch fixes errors seen when building Vim without
FEAT_VIRTUALEDIT.

Even though Vim successfully builds with this patch, I am not sure whether
functionally it works correctly or not.

- Yegappan

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ops.c b/src/ops.c
index fa159e9..19958af 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2596,11 +2596,15 @@ op_insert(oparg_T *oap, long count1)
 #endif
                        )
            {
+#ifdef FEAT_VIRTUALEDIT
                int t = getviscol2(curbuf->b_op_start_orig.col,
                                              curbuf->b_op_start_orig.coladd);
+#endif
                oap->start.col = curbuf->b_op_start_orig.col;
+#ifdef FEAT_VIRTUALEDIT
                pre_textlen -= t - oap->start_vcol;
                oap->start_vcol = t;
+#endif
            }
            else if (oap->op_type == OP_APPEND
                      && oap->end.col
@@ -2613,13 +2617,17 @@ op_insert(oparg_T *oap, long count1)
 #endif
                        )
            {
+#ifdef FEAT_VIRTUALEDIT
                int t = getviscol2(curbuf->b_op_start_orig.col,
                                              curbuf->b_op_start_orig.coladd);
+#endif
                oap->start.col = curbuf->b_op_start_orig.col;
                /* reset pre_textlen to the value of OP_INSERT */
                pre_textlen += bd.textlen;
+#ifdef FEAT_VIRTUALEDIT
                pre_textlen -= t - oap->start_vcol;
                oap->start_vcol = t;
+#endif
                oap->op_type = OP_INSERT;
            }
        }

Raspunde prin e-mail lui