Mercurial > vim
annotate src/proto/cmdhist.pro @ 20295:bc2c9ea94ec1 v8.2.0703
patch 8.2.0703: Vim9: closure cannot store value in outer context
Commit: https://github.com/vim/vim/commit/b68b346e6db6d3f848e0a89905fcd7777b73c5d8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 6 21:06:30 2020 +0200
patch 8.2.0703: Vim9: closure cannot store value in outer context
Problem: Vim9: closure cannot store value in outer context.
Solution: Make storing value in outer context work. Make :disassemble
accept a function reference.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 06 May 2020 21:15:04 +0200 |
parents | 05b240971884 |
children | ffeda71f42d7 |
rev | line source |
---|---|
17652
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* cmdhist.c */ |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 int get_hislen(void); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 histentry_T *get_histentry(int hist_type); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 void set_histentry(int hist_type, histentry_T *entry); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 int *get_hisidx(int hist_type); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 int *get_hisnum(int hist_type); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 int hist_char2type(int c); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 char_u *get_history_arg(expand_T *xp, int idx); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 void init_history(void); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 void clear_hist_entry(histentry_T *hisptr); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 int in_history(int type, char_u *str, int move_to_front, int sep, int writing); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 void add_to_history(int histype, char_u *new_entry, int in_map, int sep); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 void f_histadd(typval_T *argvars, typval_T *rettv); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 void f_histdel(typval_T *argvars, typval_T *rettv); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 void f_histget(typval_T *argvars, typval_T *rettv); |
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 void f_histnr(typval_T *argvars, typval_T *rettv); |
18840
05b240971884
patch 8.1.2407: proto files, dependencies and build instructions outdated
Bram Moolenaar <Bram@vim.org>
parents:
17652
diff
changeset
|
17 void remove_key_from_history(void); |
05b240971884
patch 8.1.2407: proto files, dependencies and build instructions outdated
Bram Moolenaar <Bram@vim.org>
parents:
17652
diff
changeset
|
18 void ex_history(exarg_T *eap); |
17652
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 /* vim: set ft=c : */ |