diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-09 21:10:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-09 21:10:39 +0200 |
commit | e906c502079770ae0e0071c74cefb802689ff193 (patch) | |
tree | fab22f2f6c059147ca7b441e603e1a238033bdf1 | |
parent | 43335ea394fe247132b9701c55cccf51e6c36425 (diff) |
patch 7.4.864v7.4.864
Problem: Tiny build fails.
Solution: Put qf_ items inside #ifdef.
-rw-r--r-- | src/ex_docmd.c | 16 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 35b6637fdc..045375ac40 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2173,9 +2173,11 @@ do_one_cmd(cmdlinep, sourcing, lnum = CURRENT_TAB_NR; ea.line2 = lnum; break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: ea.line2 = qf_get_cur_valid_idx(&ea); break; +#endif } ea.cmd = skipwhite(ea.cmd); lnum = get_address(&ea, &ea.cmd, ea.addr_type, ea.skip, ea.addr_count == 0); @@ -2236,12 +2238,14 @@ do_one_cmd(cmdlinep, sourcing, ea.line2 = ARGCOUNT; } break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: ea.line1 = 1; ea.line2 = qf_get_size(&ea); if (ea.line2 == 0) ea.line2 = 1; break; +#endif } ++ea.addr_count; } @@ -2702,11 +2706,13 @@ do_one_cmd(cmdlinep, sourcing, else ea.line2 = ARGCOUNT; break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: ea.line2 = qf_get_size(&ea); if (ea.line2 == 0) ea.line2 = 1; break; +#endif } } @@ -4340,7 +4346,7 @@ skip_range(cmd, ctx) */ static linenr_T get_address(eap, ptr, addr_type, skip, to_other_file) - exarg_T *eap; + exarg_T *eap UNUSED; char_u **ptr; int addr_type; /* flag: one of ADDR_LINES, ... */ int skip; /* only skip the address, don't use it */ @@ -4381,9 +4387,11 @@ get_address(eap, ptr, addr_type, skip, to_other_file) case ADDR_TABS: lnum = CURRENT_TAB_NR; break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: lnum = qf_get_cur_valid_idx(eap); break; +#endif } break; @@ -4416,11 +4424,13 @@ get_address(eap, ptr, addr_type, skip, to_other_file) case ADDR_TABS: lnum = LAST_TAB_NR; break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: lnum = qf_get_size(eap); if (lnum == 0) lnum = 1; break; +#endif } break; @@ -4596,9 +4606,11 @@ get_address(eap, ptr, addr_type, skip, to_other_file) case ADDR_TABS: lnum = CURRENT_TAB_NR; break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: lnum = qf_get_cur_valid_idx(eap); break; +#endif } } @@ -4737,10 +4749,12 @@ invalid_range(eap) if (eap->line2 > LAST_TAB_NR) return (char_u *)_(e_invrange); break; +#ifdef FEAT_QUICKFIX case ADDR_QUICKFIX: if (eap->line2 != 1 && eap->line2 > qf_get_size(eap)) return (char_u *)_(e_invrange); break; +#endif } } return NULL; diff --git a/src/version.c b/src/version.c index 7aff3f2391..d1ee1f28ee 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 864, +/**/ 863, /**/ 862, |