comparison src/ex_docmd.c @ 3503:7e4428115d2c v7.3.514

updated for version 7.3.514 Problem: No completion for :history command. Solution: Add the completion and update the docs. Also fix ":behave" completion. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Mon, 30 Apr 2012 18:48:53 +0200
parents 198ec1fff71a
children 5c1aaf9b4b1b
comparison
equal deleted inserted replaced
3502:65492b0466a7 3503:7e4428115d2c
3918 set_context_in_profile_cmd(xp, arg); 3918 set_context_in_profile_cmd(xp, arg);
3919 break; 3919 break;
3920 #endif 3920 #endif
3921 case CMD_behave: 3921 case CMD_behave:
3922 xp->xp_context = EXPAND_BEHAVE; 3922 xp->xp_context = EXPAND_BEHAVE;
3923 xp->xp_pattern = arg;
3923 break; 3924 break;
3925
3926 #if defined(FEAT_CMDHIST)
3927 case CMD_history:
3928 xp->xp_context = EXPAND_HISTORY;
3929 xp->xp_pattern = arg;
3930 break;
3931 #endif
3924 3932
3925 #endif /* FEAT_CMDL_COMPL */ 3933 #endif /* FEAT_CMDL_COMPL */
3926 3934
3927 default: 3935 default:
3928 break; 3936 break;
5327 int expand; 5335 int expand;
5328 char *name; 5336 char *name;
5329 } command_complete[] = 5337 } command_complete[] =
5330 { 5338 {
5331 {EXPAND_AUGROUP, "augroup"}, 5339 {EXPAND_AUGROUP, "augroup"},
5340 {EXPAND_BEHAVE, "behave"},
5332 {EXPAND_BUFFERS, "buffer"}, 5341 {EXPAND_BUFFERS, "buffer"},
5333 {EXPAND_COLORS, "color"}, 5342 {EXPAND_COLORS, "color"},
5334 {EXPAND_COMMANDS, "command"}, 5343 {EXPAND_COMMANDS, "command"},
5335 {EXPAND_COMPILER, "compiler"}, 5344 {EXPAND_COMPILER, "compiler"},
5336 #if defined(FEAT_CSCOPE) 5345 #if defined(FEAT_CSCOPE)
5348 {EXPAND_FILES_IN_PATH, "file_in_path"}, 5357 {EXPAND_FILES_IN_PATH, "file_in_path"},
5349 {EXPAND_FILETYPE, "filetype"}, 5358 {EXPAND_FILETYPE, "filetype"},
5350 {EXPAND_FUNCTIONS, "function"}, 5359 {EXPAND_FUNCTIONS, "function"},
5351 {EXPAND_HELP, "help"}, 5360 {EXPAND_HELP, "help"},
5352 {EXPAND_HIGHLIGHT, "highlight"}, 5361 {EXPAND_HIGHLIGHT, "highlight"},
5362 #if defined(FEAT_CMDHIST)
5363 {EXPAND_HISTORY, "history"},
5364 #endif
5353 #if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ 5365 #if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
5354 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) 5366 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE))
5355 {EXPAND_LOCALES, "locale"}, 5367 {EXPAND_LOCALES, "locale"},
5356 #endif 5368 #endif
5357 {EXPAND_MAPPINGS, "mapping"}, 5369 {EXPAND_MAPPINGS, "mapping"},
5358 {EXPAND_MENUS, "menu"}, 5370 {EXPAND_MENUS, "menu"},
5359 {EXPAND_OWNSYNTAX, "syntax"}, 5371 {EXPAND_OWNSYNTAX, "syntax"},