Mercurial > vim
view src/proto/ex_getln.pro @ 24379:8d5e4b50c2e1 v8.2.2730
patch 8.2.2730: Coverity complains about not restoring character
Commit: https://github.com/vim/vim/commit/c9605f0595173bca0f158f2782de950ac6bed147
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 6 21:29:32 2021 +0200
patch 8.2.2730: Coverity complains about not restoring character
Problem: Coverity complains about not restoring character.
Solution: Also restore the character in case of an error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 06 Apr 2021 21:30:05 +0200 |
parents | a427f5f26419 |
children | e8873138ffbb |
line wrap: on
line source
/* ex_getln.c */ void cmdline_init(void); char_u *getcmdline(int firstc, long count, int indent, int do_concat); char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg); int check_opt_wim(void); int text_and_win_locked(void); void text_locked_msg(void); char *get_text_locked_msg(void); int text_locked(void); int curbuf_locked(void); int allbuf_locked(void); char_u *getexline(int c, void *cookie, int indent, getline_opt_T options); char_u *getexmodeline(int promptc, void *cookie, int indent, getline_opt_T options); int cmdline_overstrike(void); int cmdline_at_end(void); colnr_T cmdline_getvcol_cursor(void); int realloc_cmdbuff(int len); void free_arshape_buf(void); void putcmdline(int c, int shift); void unputcmdline(void); int put_on_cmdline(char_u *str, int len, int redraw); void cmdline_paste_str(char_u *s, int literally); void redrawcmdline(void); void redrawcmdline_ex(int do_compute_cmdrow); void redrawcmd(void); void compute_cmdrow(void); void cursorcmd(void); void gotocmdline(int clr); char_u *vim_strsave_fnameescape(char_u *fname, int shell); void escape_fname(char_u **pp); void tilde_replace(char_u *orig_pat, int num_files, char_u **files); cmdline_info_T *get_cmdline_info(void); void f_getcmdline(typval_T *argvars, typval_T *rettv); void f_getcmdpos(typval_T *argvars, typval_T *rettv); void f_setcmdpos(typval_T *argvars, typval_T *rettv); void f_getcmdtype(typval_T *argvars, typval_T *rettv); int get_cmdline_type(void); int get_cmdline_firstc(void); int get_list_range(char_u **str, int *num1, int *num2); char *check_cedit(void); char_u *script_get(exarg_T *eap, char_u *cmd); void get_user_input(typval_T *argvars, typval_T *rettv, int inputdialog, int secret); /* vim: set ft=c : */