From ef900d52a77b0a828bdb2dd80a8290506dca8096 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 12 Nov 2013 20:36:37 +0100 Subject: [PATCH] Fixed none found :qunshift command. 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 | 2 +- src/ex.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/vimb.1 b/doc/vimb.1 index ff815f6..66f3dff 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -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] diff --git a/src/ex.c b/src/ex.c index f1689b9..f54c25f 100644 --- 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}, -- 2.20.1