Mercurial > vim
annotate src/proto/syntax.pro @ 30974:013f8436b0d5 v9.0.0822
patch 9.0.0822: crash when dragging the statusline with a mapping
Commit: https://github.com/vim/vim/commit/8ab9ca93eea32b318235384720200771863ecaee
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 31 13:06:26 2022 +0000
patch 9.0.0822: crash when dragging the statusline with a mapping
Problem: Crash when dragging the statusline with a mapping.
Solution: Check for valid window pointer. (issue https://github.com/vim/vim/issues/11427)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Nov 2022 11:18:52 +0100 |
parents | fbeebe308514 |
children |
rev | line source |
---|---|
7 | 1 /* syntax.c */ |
12510
7a887dccd13a
patch 8.0.1133: syntax timeout not used correctly
Christian Brabandt <cb@256bit.org>
parents:
12487
diff
changeset
|
2 void syntax_start(win_T *wp, linenr_T lnum); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
3 void syn_stack_free_all(synblock_T *block); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
4 void syn_stack_apply_changes(buf_T *buf); |
30831
fbeebe308514
patch 9.0.0750: crash when popup closed in callback
Bram Moolenaar <Bram@vim.org>
parents:
29310
diff
changeset
|
5 void syntax_end_parsing(win_T *wp, linenr_T lnum); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
6 int syntax_check_changed(linenr_T lnum); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
7 int get_syntax_attr(colnr_T col, int *can_spell, int keep_state); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
8 void syntax_clear(synblock_T *block); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
9 void reset_synblock(win_T *wp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
10 void ex_syntax(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
11 void ex_ownsyntax(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
12 int syntax_present(win_T *win); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
13 void reset_expand_highlight(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
14 void set_context_in_echohl_cmd(expand_T *xp, char_u *arg); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
15 void set_context_in_syntax_cmd(expand_T *xp, char_u *arg); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
16 char_u *get_syntax_name(expand_T *xp, int idx); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
17 int syn_get_id(win_T *wp, long lnum, colnr_T col, int trans, int *spellp, int keep_state); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
18 int get_syntax_info(int *seqnrp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
19 int syn_get_sub_char(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
20 int syn_get_stack_item(int i); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
21 int syn_get_foldlevel(win_T *wp, long lnum); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
22 void ex_syntime(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
4803
diff
changeset
|
23 char_u *get_syntime_arg(expand_T *xp, int idx); |
7 | 24 /* vim: set ft=c : */ |