summaryrefslogtreecommitdiffstats
path: root/src/proto/ex_getln.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-30 17:11:48 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-30 17:11:48 +0200
commit438d176e35c16d56ff3bb7a80300197ce5a30c4f (patch)
tree8b98767d59772aa5f4ec3357aa1eae1400db53fe /src/proto/ex_getln.pro
parentb434ae2a1fcbbd43244c6130451de7f14346e224 (diff)
patch 8.1.0439: recursive use of getcmdline() still not protectedv8.1.0439
Problem: Recursive use of getcmdline() still not protected. Solution: Instead of saving the command buffer when making a call which may cause recursiveness, save the buffer when actually being called recursively.
Diffstat (limited to 'src/proto/ex_getln.pro')
-rw-r--r--src/proto/ex_getln.pro3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/proto/ex_getln.pro b/src/proto/ex_getln.pro
index 6f82904235..c7386a4184 100644
--- a/src/proto/ex_getln.pro
+++ b/src/proto/ex_getln.pro
@@ -15,8 +15,6 @@ void free_cmdline_buf(void);
void putcmdline(int c, int shift);
void unputcmdline(void);
int put_on_cmdline(char_u *str, int len, int redraw);
-char_u *save_cmdline_alloc(void);
-void restore_cmdline_alloc(char_u *p);
void cmdline_paste_str(char_u *s, int literally);
void redrawcmdline(void);
void redrawcmdline_ex(int do_compute_cmdrow);
@@ -54,6 +52,7 @@ void prepare_viminfo_history(int asklen, int writing);
int read_viminfo_history(vir_T *virp, int writing);
void handle_viminfo_history(garray_T *values, int writing);
void finish_viminfo_history(vir_T *virp);
+void cmdline_init(void);
void write_viminfo_history(FILE *fp, int merge);
void cmd_pchar(int c, int offset);
int cmd_gchar(int offset);