Mercurial > vim
comparison src/ex_docmd.c @ 10275:6d8b2da002e9 v8.0.0034
commit https://github.com/vim/vim/commit/9e507ca8a3e1535e62de4bd86374b0fcd18ef5b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 15:39:39 2016 +0200
patch 8.0.0034
Problem: No completion for ":messages".
Solution: Complete "clear" argument. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 15 Oct 2016 15:45:05 +0200 |
parents | c036c0f636d5 |
children | cf988222b150 |
comparison
equal
deleted
inserted
replaced
10274:6a11953079ac | 10275:6d8b2da002e9 |
---|---|
4279 case CMD_behave: | 4279 case CMD_behave: |
4280 xp->xp_context = EXPAND_BEHAVE; | 4280 xp->xp_context = EXPAND_BEHAVE; |
4281 xp->xp_pattern = arg; | 4281 xp->xp_pattern = arg; |
4282 break; | 4282 break; |
4283 | 4283 |
4284 case CMD_messages: | |
4285 xp->xp_context = EXPAND_MESSAGES; | |
4286 xp->xp_pattern = arg; | |
4287 break; | |
4288 | |
4284 #if defined(FEAT_CMDHIST) | 4289 #if defined(FEAT_CMDHIST) |
4285 case CMD_history: | 4290 case CMD_history: |
4286 xp->xp_context = EXPAND_HISTORY; | 4291 xp->xp_context = EXPAND_HISTORY; |
4287 xp->xp_pattern = arg; | 4292 xp->xp_pattern = arg; |
4288 break; | 4293 break; |
5891 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) | 5896 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) |
5892 {EXPAND_LOCALES, "locale"}, | 5897 {EXPAND_LOCALES, "locale"}, |
5893 #endif | 5898 #endif |
5894 {EXPAND_MAPPINGS, "mapping"}, | 5899 {EXPAND_MAPPINGS, "mapping"}, |
5895 {EXPAND_MENUS, "menu"}, | 5900 {EXPAND_MENUS, "menu"}, |
5901 {EXPAND_MESSAGES, "messages"}, | |
5896 {EXPAND_OWNSYNTAX, "syntax"}, | 5902 {EXPAND_OWNSYNTAX, "syntax"}, |
5897 #if defined(FEAT_PROFILE) | 5903 #if defined(FEAT_PROFILE) |
5898 {EXPAND_SYNTIME, "syntime"}, | 5904 {EXPAND_SYNTIME, "syntime"}, |
5899 #endif | 5905 #endif |
5900 {EXPAND_SETTINGS, "option"}, | 5906 {EXPAND_SETTINGS, "option"}, |
11899 return (char_u *)"mswin"; | 11905 return (char_u *)"mswin"; |
11900 if (idx == 1) | 11906 if (idx == 1) |
11901 return (char_u *)"xterm"; | 11907 return (char_u *)"xterm"; |
11902 return NULL; | 11908 return NULL; |
11903 } | 11909 } |
11910 | |
11911 /* | |
11912 * Function given to ExpandGeneric() to obtain the possible arguments of the | |
11913 * ":messages {clear}" command. | |
11914 */ | |
11915 char_u * | |
11916 get_messages_arg(expand_T *xp UNUSED, int idx) | |
11917 { | |
11918 if (idx == 0) | |
11919 return (char_u *)"clear"; | |
11920 return NULL; | |
11921 } | |
11904 #endif | 11922 #endif |
11905 | 11923 |
11906 #ifdef FEAT_AUTOCMD | 11924 #ifdef FEAT_AUTOCMD |
11907 static int filetype_detect = FALSE; | 11925 static int filetype_detect = FALSE; |
11908 static int filetype_plugin = FALSE; | 11926 static int filetype_plugin = FALSE; |