diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-29 20:59:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-29 20:59:59 +0200 |
commit | 1587a1e37db85425ae77054ab681a0bbb0d1affb (patch) | |
tree | 9223f33554da18ddc125929c4345d95ec1f1ed45 /src/ex_docmd.c | |
parent | 8ada2cca0a6f0135441c520cac269468928e65ef (diff) |
Add completion for ":ownsyntax" and improve completion for ":filetype".
(Dominique Pelle)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 2b63c08505..c4732f7048 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3831,8 +3831,12 @@ set_one_cmd_context(xp, buff) xp->xp_pattern = arg; break; - case CMD_setfiletype: case CMD_ownsyntax: + xp->xp_context = EXPAND_OWNSYNTAX; + xp->xp_pattern = arg; + break; + + case CMD_setfiletype: xp->xp_context = EXPAND_FILETYPE; xp->xp_pattern = arg; break; |