Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* ex_getln.c */ |
Bram Moolenaar | c447d8d | 2018-12-18 21:56:28 +0100 | [diff] [blame] | 2 | void cmdline_init(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 3 | char_u *getcmdline(int firstc, long count, int indent); |
| 4 | char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg); |
| 5 | int text_locked(void); |
| 6 | void text_locked_msg(void); |
Bram Moolenaar | f9e3e09 | 2019-01-13 23:38:42 +0100 | [diff] [blame] | 7 | char *get_text_locked_msg(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 8 | int curbuf_locked(void); |
| 9 | int allbuf_locked(void); |
| 10 | char_u *getexline(int c, void *cookie, int indent); |
| 11 | char_u *getexmodeline(int promptc, void *cookie, int indent); |
| 12 | int cmdline_overstrike(void); |
| 13 | int cmdline_at_end(void); |
| 14 | colnr_T cmdline_getvcol_cursor(void); |
| 15 | void free_cmdline_buf(void); |
| 16 | void putcmdline(int c, int shift); |
| 17 | void unputcmdline(void); |
| 18 | int put_on_cmdline(char_u *str, int len, int redraw); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 19 | void cmdline_paste_str(char_u *s, int literally); |
| 20 | void redrawcmdline(void); |
Bram Moolenaar | 29ae377 | 2017-04-30 19:39:39 +0200 | [diff] [blame] | 21 | void redrawcmdline_ex(int do_compute_cmdrow); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 22 | void redrawcmd(void); |
| 23 | void compute_cmdrow(void); |
| 24 | void gotocmdline(int clr); |
| 25 | char_u *ExpandOne(expand_T *xp, char_u *str, char_u *orig, int options, int mode); |
| 26 | void ExpandInit(expand_T *xp); |
| 27 | void ExpandCleanup(expand_T *xp); |
| 28 | void ExpandEscape(expand_T *xp, char_u *str, int numfiles, char_u **files, int options); |
| 29 | char_u *vim_strsave_fnameescape(char_u *fname, int shell); |
| 30 | void tilde_replace(char_u *orig_pat, int num_files, char_u **files); |
| 31 | char_u *sm_gettail(char_u *s); |
| 32 | char_u *addstar(char_u *fname, int len, int context); |
Bram Moolenaar | 33a80ee | 2016-09-05 21:51:14 +0200 | [diff] [blame] | 33 | void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 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); |
| 36 | void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); |
| 37 | void init_history(void); |
| 38 | int get_histtype(char_u *name); |
| 39 | void add_to_history(int histype, char_u *new_entry, int in_map, int sep); |
| 40 | int get_history_idx(int histype); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 41 | char_u *get_history_entry(int histype, int idx); |
| 42 | int clr_history(int histype); |
| 43 | int del_history_entry(int histype, char_u *str); |
| 44 | int del_history_idx(int histype, int idx); |
| 45 | void remove_key_from_history(void); |
Bram Moolenaar | 45d2eea | 2016-06-06 21:07:52 +0200 | [diff] [blame] | 46 | char_u *get_cmdline_str(void); |
| 47 | int get_cmdline_pos(void); |
| 48 | int set_cmdline_pos(int pos); |
| 49 | int get_cmdline_type(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 50 | int get_list_range(char_u **str, int *num1, int *num2); |
| 51 | void ex_history(exarg_T *eap); |
| 52 | void prepare_viminfo_history(int asklen, int writing); |
| 53 | int read_viminfo_history(vir_T *virp, int writing); |
Bram Moolenaar | 46bbb0c | 2016-06-11 21:04:39 +0200 | [diff] [blame] | 54 | void handle_viminfo_history(garray_T *values, int writing); |
Bram Moolenaar | 1fd99c1 | 2016-06-09 20:24:28 +0200 | [diff] [blame] | 55 | void finish_viminfo_history(vir_T *virp); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 56 | void write_viminfo_history(FILE *fp, int merge); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 57 | char_u *script_get(exarg_T *eap, char_u *cmd); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 58 | /* vim: set ft=c : */ |