Mercurial > vim
annotate src/proto/edit.pro @ 31622:1102f4777518 v9.0.1143
patch 9.0.1143: invalid memory access with bad 'statusline' value
Commit: https://github.com/vim/vim/commit/7b17eb4b063a234376c1ec909ee293e42cff290c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 4 14:31:49 2023 +0000
patch 9.0.1143: invalid memory access with bad 'statusline' value
Problem: Invalid memory access with bad 'statusline' value.
Solution: Avoid going over the NUL at the end.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Jan 2023 15:45:05 +0100 |
parents | 04df44c52d65 |
children | 72fd0421c183 |
rev | line source |
---|---|
7 | 1 /* edit.c */ |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
2 int edit(int cmdchar, int startln, long count); |
16142
570a296aa0b4
patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents:
16127
diff
changeset
|
3 int ins_need_undo_get(void); |
570a296aa0b4
patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents:
16127
diff
changeset
|
4 void ins_redraw(int ready); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
5 void edit_putchar(int c, int highlight); |
22095
2cc0de1e05a6
patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents:
22077
diff
changeset
|
6 void set_insstart(linenr_T lnum, int col); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
7 void edit_unputchar(void); |
29757
beab53bb989e
patch 9.0.0218: reading before the start of the line
Bram Moolenaar <Bram@vim.org>
parents:
25567
diff
changeset
|
8 void display_dollar(colnr_T col_arg); |
18135
1868ec23360e
patch 8.1.2062: the mouse code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
9 void undisplay_dollar(void); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
10 void truncate_spaces(char_u *line); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
11 void backspace_until_column(int col); |
23076
5fbac68bda23
patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode character
Bram Moolenaar <Bram@vim.org>
parents:
22095
diff
changeset
|
12 int get_literal(int noReduceKeys); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
13 void insertchar(int c, int flags, int second_indent); |
16142
570a296aa0b4
patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents:
16127
diff
changeset
|
14 void start_arrow(pos_T *end_insert_pos); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
15 int stop_arrow(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
16 void set_last_insert(int c); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
17 void free_last_insert(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
18 char_u *add_char2buf(int c, char_u *s); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
19 void beginline(int flags); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
20 int oneright(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
21 int oneleft(void); |
30535
04df44c52d65
patch 9.0.0603: with 'nosplitscroll' folds are not handled correctly
Bram Moolenaar <Bram@vim.org>
parents:
29757
diff
changeset
|
22 linenr_T cursor_up_inner(win_T *wp, long n); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
23 int cursor_up(long n, int upd_topline); |
30535
04df44c52d65
patch 9.0.0603: with 'nosplitscroll' folds are not handled correctly
Bram Moolenaar <Bram@vim.org>
parents:
29757
diff
changeset
|
24 linenr_T cursor_down_inner(win_T *wp, long n); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
25 int cursor_down(long n, int upd_topline); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
26 int stuff_inserted(int c, long count, int no_esc); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
27 char_u *get_last_insert(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
28 char_u *get_last_insert_save(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
29 void replace_push(int c); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
30 int replace_push_mb(char_u *p); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18135
diff
changeset
|
31 void replace_join(int off); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
32 int hkmap(int c); |
10640
27be410d6d29
patch 8.0.0210: no support for bracketed paste
Christian Brabandt <cb@256bit.org>
parents:
10277
diff
changeset
|
33 int bracketed_paste(paste_mode_T mode, int drop, garray_T *gap); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
34 void ins_scroll(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
35 void ins_horscroll(void); |
16142
570a296aa0b4
patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents:
16127
diff
changeset
|
36 int ins_eol(int c); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
3501
diff
changeset
|
37 int ins_copychar(linenr_T lnum); |
15062
3a94f7918980
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account
Bram Moolenaar <Bram@vim.org>
parents:
14019
diff
changeset
|
38 colnr_T get_nolist_virtcol(void); |
18135
1868ec23360e
patch 8.1.2062: the mouse code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
39 int get_can_cindent(void); |
1868ec23360e
patch 8.1.2062: the mouse code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
40 void set_can_cindent(int val); |
16142
570a296aa0b4
patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents:
16127
diff
changeset
|
41 int ins_apply_autocmds(event_T event); |
7 | 42 /* vim: set ft=c : */ |