Hi,

The attached patch fixes the errors seen when building Vim without
the quickfix feature.

- 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/ex_cmds2.c b/src/ex_cmds2.c
index ec20daa..17f6bfe 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2565,6 +2565,15 @@ ex_listdo(exarg_T *eap)
     }
 #endif
 
+#ifndef FEAT_QUICKFIX
+    if (eap->cmdidx == CMD_cdo || eap->cmdidx == CMD_ldo ||
+           eap->cmdidx == CMD_cfdo || eap->cmdidx == CMD_lfdo)
+    {
+       ex_ni(eap);
+       return;
+    }
+#endif
+
 #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
     if (eap->cmdidx != CMD_windo && eap->cmdidx != CMD_tabdo)
        /* Don't do syntax HL autocommands.  Skipping the syntax file is a
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 47cda94..eb6a58b 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -75,16 +75,20 @@ redo:
 
     row = curwin->w_wrow + W_WINROW(curwin);
 
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
     if (firstwin->w_p_pvw)
        top_clear = firstwin->w_height;
     else
+#endif
        top_clear = 0;
 
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
     /* When the preview window is at the bottom stop just above it.  Also
      * avoid drawing over the status line so that it's clear there is a window
      * boundary. */
     if (lastwin->w_p_pvw)
        above_row -= lastwin->w_height + lastwin->w_status_height + 1;
+#endif
 
     /*
      * Figure out the size and position of the pum.
@@ -149,6 +153,7 @@ redo:
     if (pum_height < 1 || (pum_height == 1 && size > 1))
        return;
 
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
     /* If there is a preview window at the top avoid drawing over it. */
     if (firstwin->w_p_pvw
            && pum_row < firstwin->w_height
@@ -157,6 +162,7 @@ redo:
        pum_row += firstwin->w_height;
        pum_height -= firstwin->w_height;
     }
+#endif
 
     /* Compute the width of the widest match and the widest extra. */
     for (i = 0; i < size; ++i)

Raspunde prin e-mail lui