Mercurial > vim
annotate src/proto/indent.pro @ 36533:90545c76016e draft default tip
runtime(tar): Update tar.vim to support permissions
Commit: https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29
Author: Lennart00 <73488709+Lennart00@users.noreply.github.com>
Date: Mon Nov 11 22:39:30 2024 +0100
runtime(tar): Update tar.vim to support permissions
These changes enable tar.vim to keep permissions of files that were
edited intact instead of replacing them with the default permissions.
The major change for this is switching from "tar -OPxf", which reads out
the contents of the selected file from an tar archive to stdout to
"tar -pPxf" which extracts the selected file to the current directory
with permissions intact
This requirs the temporary directory to be created earlier.
closes: #7379
Signed-off-by: Lennart00 <73488709+Lennart00@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Nov 2024 22:45:02 +0100 |
parents | c794f77cbba5 |
children |
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); |
35308
22c03485f222
patch 9.1.0456: Left shift is incorrect with vartabstop and shiftwidth=0
Christian Brabandt <cb@256bit.org>
parents:
34327
diff
changeset
|
4 int tabstop_at(colnr_T col, int ts, int *vts, int left); |
18156
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); |
35308
22c03485f222
patch 9.1.0456: Left shift is incorrect with vartabstop and shiftwidth=0
Christian Brabandt <cb@256bit.org>
parents:
34327
diff
changeset
|
11 long get_sw_value_indent(buf_T *buf, int left); |
22c03485f222
patch 9.1.0456: Left shift is incorrect with vartabstop and shiftwidth=0
Christian Brabandt <cb@256bit.org>
parents:
34327
diff
changeset
|
12 long get_sw_value_col(buf_T *buf, colnr_T col, int left); |
18156
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); |
34327
cb3d20e3dcd9
patch 9.1.0097: 'breakindent' behaves inconsistently with 'list' and splits
Christian Brabandt <cb@256bit.org>
parents:
30853
diff
changeset
|
17 int get_indent_str(char_u *ptr, int ts, int no_ts); |
cb3d20e3dcd9
patch 9.1.0097: 'breakindent' behaves inconsistently with 'list' and splits
Christian Brabandt <cb@256bit.org>
parents:
30853
diff
changeset
|
18 int get_indent_str_vtab(char_u *ptr, int ts, int *vts, int no_ts); |
18265
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); |
36372
c794f77cbba5
patch 9.1.0806: tests: no error check when setting global 'briopt'
Christian Brabandt <cb@256bit.org>
parents:
35308
diff
changeset
|
21 int briopt_check(char_u *briopt, 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 : */ |