annotate src/proto/textformat.pro @ 33702:26a3250fa5b2 v9.0.2086

patch 9.0.2086: code cleanup for option callbacks needed Commit: https://github.com/vim/vim/commit/deba02ddd46e9e8adfe2f7800c6be19d8c8e1a4d Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Nov 2 21:01:19 2023 +0100 patch 9.0.2086: code cleanup for option callbacks needed Problem: code cleanup for option callbacks needed Solution: remove flag os_doskip, it's not necessary, as we can check, whether an error message was returned Remove unnecessary field os_doskip Callback functions for boolean options set os_doskip immediately before returning an error message, so os_doskip isn't actually needed. closes: #13461 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2023 21:15:04 +0100
parents f103da6ba95f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20237
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 /* textformat.c */
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 int has_format_option(int x);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 void internal_format(int textwidth, int second_indent, int flags, int format_only, int c);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 void auto_format(int trailblank, int prev_line);
29310
f103da6ba95f patch 8.2.5171: dependencies and proto files are outdated
Bram Moolenaar <Bram@vim.org>
parents: 20237
diff changeset
5 void check_auto_format(int end_insert);
20237
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 int comp_textwidth(int ff);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 void op_format(oparg_T *oap, int keep_cursor);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 void op_formatexpr(oparg_T *oap);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 int fex_format(linenr_T lnum, long count, int c);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 void format_lines(linenr_T line_count, int avoid_fex);
918245588b50 patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 /* vim: set ft=c : */