Fixed none found :qunshift command.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 12 Nov 2013 19:36:37 +0000 (20:36 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 12 Nov 2013 19:38:54 +0000 (20:38 +0100)
The command was put onto the wrong place so we could not find it and
considered this command as unknown. Now it's put to the right place to get it
working.
By the way some missed pre-compiler flags added.

doc/vimb.1
src/ex.c

index ff815f6..66f3dff 100644 (file)
@@ -460,7 +460,7 @@ available if vimb has been compiled with QUEUE feature.
 .BI ":qpu[sh] [" URI ]
 Push \fIURI\fP or if not given current URI to the end of the queue.
 .TP
-.BI ":qu[nshift] [" URI ]
+.BI ":qun[shift] [" URI ]
 Push \fIURI\fP or if not given current URI to the beginning of the queue.
 .TP
 .B :qp[op]
index f1689b9..f54c25f 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -115,7 +115,9 @@ static gboolean ex_map(const ExArg *arg);
 static gboolean ex_unmap(const ExArg *arg);
 static gboolean ex_normal(const ExArg *arg);
 static gboolean ex_open(const ExArg *arg);
+#ifdef FEATURE_QUEUE
 static gboolean ex_queue(const ExArg *arg);
+#endif
 static gboolean ex_quit(const ExArg *arg);
 static gboolean ex_save(const ExArg *arg);
 static gboolean ex_set(const ExArg *arg);
@@ -151,10 +153,12 @@ static ExInfo commands[] = {
     {"nunmap",           EX_NUNMAP,      ex_unmap,      EX_FLAG_LHS},
     {"open",             EX_OPEN,        ex_open,       EX_FLAG_RHS},
     {"quit",             EX_QUIT,        ex_quit,       EX_FLAG_NONE},
+#ifdef FEATURE_QUEUE
+    {"qunshift",         EX_QUNSHIFT,    ex_queue,      EX_FLAG_RHS},
     {"qclear",           EX_QCLEAR,      ex_queue,      EX_FLAG_RHS},
     {"qpop",             EX_QPOP,        ex_queue,      EX_FLAG_NONE},
     {"qpush",            EX_QPUSH,       ex_queue,      EX_FLAG_RHS},
-    {"qunshift",         EX_QUNSHIFT,    ex_queue,      EX_FLAG_RHS},
+#endif
     {"save",             EX_SAVE,        ex_save,       EX_FLAG_RHS|EX_FLAG_EXP},
     {"set",              EX_SET,         ex_set,        EX_FLAG_RHS},
     {"shellcmd",         EX_SHELLCMD,    ex_shellcmd,   EX_FLAG_RHS|EX_FLAG_EXP},