Mercurial > vim
comparison src/proto/option.pro @ 18156:c81370b3ede4 v8.1.2073
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Commit: https://github.com/vim/vim/commit/010ee9657acf1a9f799079d718998c94e50ccadc
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 25 20:37:36 2019 +0200
patch 8.1.2073: when editing a buffer 'colorcolumn' may not work
Problem: When editing a buffer 'colorcolumn' may not work.
Solution: Set the buffer before copying option values. Call
check_colorcolumn() after copying window options.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Sep 2019 20:45:03 +0200 |
parents | df5778d73320 |
children | 8b0114ffde2b |
comparison
equal
deleted
inserted
replaced
18155:68bab58738d2 | 18156:c81370b3ede4 |
---|---|
26 void set_term_option_sctx_idx(char *name, int opt_idx); | 26 void set_term_option_sctx_idx(char *name, int opt_idx); |
27 void check_redraw(long_u flags); | 27 void check_redraw(long_u flags); |
28 int findoption(char_u *arg); | 28 int findoption(char_u *arg); |
29 int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags); | 29 int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags); |
30 int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from); | 30 int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from); |
31 char_u *option_iter_next(void **option, int opt_type); | |
31 long_u get_option_flags(int opt_idx); | 32 long_u get_option_flags(int opt_idx); |
32 void set_option_flag(int opt_idx, long_u flag); | 33 void set_option_flag(int opt_idx, long_u flag); |
33 void clear_option_flag(int opt_idx, long_u flag); | 34 void clear_option_flag(int opt_idx, long_u flag); |
34 int is_global_option(int opt_idx); | 35 int is_global_option(int opt_idx); |
35 int is_global_local_option(int opt_idx); | 36 int is_global_local_option(int opt_idx); |
36 int is_window_local_option(int opt_idx); | 37 int is_window_local_option(int opt_idx); |
37 int is_hidden_option(int opt_idx); | 38 int is_hidden_option(int opt_idx); |
38 int is_crypt_key_option(int opt_idx); | 39 int is_crypt_key_option(int opt_idx); |
39 char_u *option_iter_next(void **option, int opt_type); | |
40 char *set_option_value(char_u *name, long number, char_u *string, int opt_flags); | 40 char *set_option_value(char_u *name, long number, char_u *string, int opt_flags); |
41 char_u *get_term_code(char_u *tname); | 41 char_u *get_term_code(char_u *tname); |
42 char_u *get_highlight_default(void); | 42 char_u *get_highlight_default(void); |
43 char_u *get_encoding_default(void); | 43 char_u *get_encoding_default(void); |
44 int makeset(FILE *fd, int opt_flags, int local_only); | 44 int makeset(FILE *fd, int opt_flags, int local_only); |
52 char_u *get_option_varp_scope(int opt_idx, int opt_flags); | 52 char_u *get_option_varp_scope(int opt_idx, int opt_flags); |
53 char_u *get_option_var(int opt_idx); | 53 char_u *get_option_var(int opt_idx); |
54 char_u *get_option_fullname(int opt_idx); | 54 char_u *get_option_fullname(int opt_idx); |
55 char_u *get_equalprg(void); | 55 char_u *get_equalprg(void); |
56 void win_copy_options(win_T *wp_from, win_T *wp_to); | 56 void win_copy_options(win_T *wp_from, win_T *wp_to); |
57 void after_copy_winopt(win_T *wp); | |
57 void copy_winopt(winopt_T *from, winopt_T *to); | 58 void copy_winopt(winopt_T *from, winopt_T *to); |
58 void clear_winopt(winopt_T *wop); | 59 void clear_winopt(winopt_T *wop); |
59 void buf_copy_options(buf_T *buf, int flags); | 60 void buf_copy_options(buf_T *buf, int flags); |
60 void reset_modifiable(void); | 61 void reset_modifiable(void); |
61 void set_iminsert_global(void); | 62 void set_iminsert_global(void); |
72 void fill_breakat_flags(void); | 73 void fill_breakat_flags(void); |
73 int check_opt_wim(void); | 74 int check_opt_wim(void); |
74 int can_bs(int what); | 75 int can_bs(int what); |
75 void save_file_ff(buf_T *buf); | 76 void save_file_ff(buf_T *buf); |
76 int file_ff_differs(buf_T *buf, int ignore_empty); | 77 int file_ff_differs(buf_T *buf, int ignore_empty); |
77 int tabstop_set(char_u *var, int **array); | |
78 int tabstop_padding(colnr_T col, int ts_arg, int *vts); | |
79 int tabstop_at(colnr_T col, int ts, int *vts); | |
80 colnr_T tabstop_start(colnr_T col, int ts, int *vts); | |
81 void tabstop_fromto(colnr_T start_col, colnr_T end_col, int ts_arg, int *vts, int *ntabs, int *nspcs); | |
82 int tabstop_eq(int *ts1, int *ts2); | |
83 int *tabstop_copy(int *oldts); | |
84 int tabstop_count(int *ts); | |
85 int tabstop_first(int *ts); | |
86 long get_sw_value(buf_T *buf); | |
87 long get_sw_value_indent(buf_T *buf); | |
88 long get_sw_value_col(buf_T *buf, colnr_T col); | |
89 long get_sts_value(void); | |
90 long get_scrolloff_value(void); | 78 long get_scrolloff_value(void); |
91 long get_sidescrolloff_value(void); | 79 long get_sidescrolloff_value(void); |
92 void find_mps_values(int *initc, int *findc, int *backwards, int switchit); | 80 void find_mps_values(int *initc, int *findc, int *backwards, int switchit); |
93 int briopt_check(win_T *wp); | 81 int briopt_check(win_T *wp); |
94 unsigned int get_bkc_value(buf_T *buf); | 82 unsigned int get_bkc_value(buf_T *buf); |