Mercurial > vim
comparison src/proto/getchar.pro @ 24838:3f9053c21765 v8.2.2957
patch 8.2.2957: using getchar() in Vim9 script is problematic
Commit: https://github.com/vim/vim/commit/3a7503c34c65ed15cc08deb5b54aaf2ea51525b4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 7 18:29:17 2021 +0200
patch 8.2.2957: using getchar() in Vim9 script is problematic
Problem: Using getchar() in Vim9 script is problematic.
Solution: Add getcharstr(). (closes https://github.com/vim/vim/issues/8343)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Jun 2021 18:30:04 +0200 |
parents | 6d50182e7e24 |
children | fdc6a7769045 |
comparison
equal
deleted
inserted
replaced
24837:a9c9ff4fb89b | 24838:3f9053c21765 |
---|---|
44 int vpeekc(void); | 44 int vpeekc(void); |
45 int vpeekc_nomap(void); | 45 int vpeekc_nomap(void); |
46 int vpeekc_any(void); | 46 int vpeekc_any(void); |
47 int char_avail(void); | 47 int char_avail(void); |
48 void f_getchar(typval_T *argvars, typval_T *rettv); | 48 void f_getchar(typval_T *argvars, typval_T *rettv); |
49 void f_getcharstr(typval_T *argvars, typval_T *rettv); | |
49 void f_getcharmod(typval_T *argvars, typval_T *rettv); | 50 void f_getcharmod(typval_T *argvars, typval_T *rettv); |
50 void parse_queued_messages(void); | 51 void parse_queued_messages(void); |
51 void vungetc(int c); | 52 void vungetc(int c); |
52 int fix_input_buffer(char_u *buf, int len); | 53 int fix_input_buffer(char_u *buf, int len); |
53 int input_available(void); | 54 int input_available(void); |