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 | e96a249 | 2019-06-25 04:12:16 +0200 | [diff] [blame] | 3 | char_u *getcmdline(int firstc, long count, int indent, int do_concat); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 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); |
Bram Moolenaar | e96a249 | 2019-06-25 04:12:16 +0200 | [diff] [blame] | 10 | char_u *getexline(int c, void *cookie, int indent, int do_concat); |
| 11 | char_u *getexmodeline(int promptc, void *cookie, int indent, int do_concat); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 12 | int cmdline_overstrike(void); |
| 13 | int cmdline_at_end(void); |
| 14 | colnr_T cmdline_getvcol_cursor(void); |
Bram Moolenaar | 48ac671 | 2019-07-04 20:26:21 +0200 | [diff] [blame] | 15 | void free_arshape_buf(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 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); |
Bram Moolenaar | 5f32ece | 2019-07-21 21:51:59 +0200 | [diff] [blame] | 37 | int hist_char2type(int c); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 38 | void init_history(void); |
Bram Moolenaar | 5f32ece | 2019-07-21 21:51:59 +0200 | [diff] [blame] | 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); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 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); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 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); |
Bram Moolenaar | 45d2eea | 2016-06-06 21:07:52 +0200 | [diff] [blame] | 49 | char_u *get_cmdline_str(void); |
| 50 | int get_cmdline_pos(void); |
| 51 | int set_cmdline_pos(int pos); |
| 52 | int get_cmdline_type(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 53 | int get_list_range(char_u **str, int *num1, int *num2); |
| 54 | void ex_history(exarg_T *eap); |
Bram Moolenaar | 5f32ece | 2019-07-21 21:51:59 +0200 | [diff] [blame] | 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); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 60 | char_u *script_get(exarg_T *eap, char_u *cmd); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 61 | /* vim: set ft=c : */ |