Mercurial > vim
comparison src/proto/ex_getln.pro @ 17652:9efb4dda9720
patch 8.1.1823: command line history code is spread out
commit https://github.com/vim/vim/commit/d7663c22c6c1ff0f86b81371586fbc851d3a3e9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 6 21:59:57 2019 +0200
patch 8.1.1823: command line history code is spread out
Problem: Command line history code is spread out.
Solution: Put the code in a new file. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4779)
Also graduate the +cmdline_hist feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 06 Aug 2019 22:00:08 +0200 |
parents | e43f0c0c491c |
children | 87a8760babec |
comparison
equal
deleted
inserted
replaced
17651:826360df7aff | 17652:9efb4dda9720 |
---|---|
32 char_u *addstar(char_u *fname, int len, int context); | 32 char_u *addstar(char_u *fname, int len, int context); |
33 void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline); | 33 void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline); |
34 int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches); | 34 int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches); |
35 int ExpandGeneric(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file, char_u *((*func)(expand_T *, int)), int escaped); | 35 int ExpandGeneric(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file, char_u *((*func)(expand_T *, int)), int escaped); |
36 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); | 36 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); |
37 int hist_char2type(int c); | |
38 void init_history(void); | |
39 void clear_hist_entry(histentry_T *hisptr); | |
40 int in_history(int type, char_u *str, int move_to_front, int sep, int writing); | |
41 int get_histtype(char_u *name); | |
42 void add_to_history(int histype, char_u *new_entry, int in_map, int sep); | |
43 int get_history_idx(int histype); | |
44 char_u *get_history_entry(int histype, int idx); | |
45 int clr_history(int histype); | |
46 int del_history_entry(int histype, char_u *str); | |
47 int del_history_idx(int histype, int idx); | |
48 void remove_key_from_history(void); | |
49 char_u *get_cmdline_str(void); | 37 char_u *get_cmdline_str(void); |
50 int get_cmdline_pos(void); | 38 int get_cmdline_pos(void); |
51 int set_cmdline_pos(int pos); | 39 int set_cmdline_pos(int pos); |
52 int get_cmdline_type(void); | 40 int get_cmdline_type(void); |
41 int get_cmdline_firstc(void); | |
53 int get_list_range(char_u **str, int *num1, int *num2); | 42 int get_list_range(char_u **str, int *num1, int *num2); |
54 void ex_history(exarg_T *eap); | |
55 int get_hislen(void); | |
56 histentry_T *get_histentry(int hist_type); | |
57 void set_histentry(int hist_type, histentry_T *entry); | |
58 int *get_hisidx(int hist_type); | |
59 int *get_hisnum(int hist_type); | |
60 char_u *script_get(exarg_T *eap, char_u *cmd); | 43 char_u *script_get(exarg_T *eap, char_u *cmd); |
61 /* vim: set ft=c : */ | 44 /* vim: set ft=c : */ |