Mercurial > vim
annotate src/proto/indent.pro @ 31734:59c474f6715d v9.0.1199
patch 9.0.1199: crash when using kitty and using a mapping with <Esc>
Commit: https://github.com/vim/vim/commit/584b853ee034754edd278d15f2966ac3d8c9d72c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 14 21:07:07 2023 +0000
patch 9.0.1199: crash when using kitty and using a mapping with <Esc>
Problem: Crash when using kitty and using a mapping with <Esc>.
Solution: Do not try setting did_simplify when it is NULL. (closes https://github.com/vim/vim/issues/11817)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Jan 2023 22:15:03 +0100 |
parents | 40df8a6515f6 |
children | cb3d20e3dcd9 |
rev | line source |
---|---|
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* indent.c */ |
18156
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
2 int tabstop_set(char_u *var, int **array); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
3 int tabstop_padding(colnr_T col, int ts_arg, int *vts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
4 int tabstop_at(colnr_T col, int ts, int *vts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
5 colnr_T tabstop_start(colnr_T col, int ts, int *vts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
6 void tabstop_fromto(colnr_T start_col, colnr_T end_col, int ts_arg, int *vts, int *ntabs, int *nspcs); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
7 int *tabstop_copy(int *oldts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
8 int tabstop_count(int *ts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
9 int tabstop_first(int *ts); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
10 long get_sw_value(buf_T *buf); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
11 long get_sw_value_indent(buf_T *buf); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
12 long get_sw_value_col(buf_T *buf, colnr_T col); |
c81370b3ede4
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
13 long get_sts_value(void); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
14 int get_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
15 int get_indent_lnum(linenr_T lnum); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
16 int get_indent_buf(buf_T *buf, linenr_T lnum); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
17 int get_indent_str(char_u *ptr, int ts, int list); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
18 int get_indent_str_vtab(char_u *ptr, int ts, int *vts, int list); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
19 int set_indent(int size, int flags); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
20 int get_number_indent(linenr_T lnum); |
18679
fd95d4dbeb37
patch 8.1.2331: the option.c file is still very big
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
21 int briopt_check(win_T *wp); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
22 int get_breakindent_win(win_T *wp, char_u *line); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
23 int inindent(int extra); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
24 void op_reindent(oparg_T *oap, int (*how)(void)); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
25 int preprocs_left(void); |
28856
948877671c54
patch 8.2.4951: smart indenting done when not enabled
Bram Moolenaar <Bram@vim.org>
parents:
18679
diff
changeset
|
26 int may_do_si(void); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
27 void ins_try_si(int c); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
28 void change_indent(int type, int amount, int round, int replaced, int call_changed_bytes); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
29 int copy_indent(int size, char_u *src); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
30 void ex_retab(exarg_T *eap); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
31 int get_expr_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
32 int get_lisp_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
33 void fixthisline(int (*get_the_indent)(void)); |
30853
40df8a6515f6
patch 9.0.0761: cannot use 'indentexpr' for Lisp indenting
Bram Moolenaar <Bram@vim.org>
parents:
28856
diff
changeset
|
34 int use_indentexpr_for_lisp(void); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
35 void fix_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
36 void f_indent(typval_T *argvars, typval_T *rettv); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
18156
diff
changeset
|
37 void f_lispindent(typval_T *argvars, typval_T *rettv); |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 /* vim: set ft=c : */ |