aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2019-01-28 00:45:59 +0100
committerGitHub <noreply@github.com>2019-01-28 00:45:59 +0100
commit28f87c505d895df8d00a919f6324f5305f02166e (patch)
tree3a642b40f51833605b14a0184d968dae4bb2cdfe /src/nvim/buffer_defs.h
parent7e6980a161011ab58c69ee67f35522fd86e6cb25 (diff)
parent88b0899eb40581ad5b8071823594852a7cdf2043 (diff)
downloadrneovim-28f87c505d895df8d00a919f6324f5305f02166e.tar.gz
rneovim-28f87c505d895df8d00a919f6324f5305f02166e.tar.bz2
rneovim-28f87c505d895df8d00a919f6324f5305f02166e.zip
Merge #9539 "options: make 'listchars' and 'fillchars' local to window"
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 076d1dfdc4..b3977e0176 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -248,6 +248,10 @@ typedef struct {
# define w_p_scl w_onebuf_opt.wo_scl // 'signcolumn'
char_u *wo_winhl;
# define w_p_winhl w_onebuf_opt.wo_winhl // 'winhighlight'
+ char_u *wo_fcs;
+# define w_p_fcs w_onebuf_opt.wo_fcs // 'fillchars'
+ char_u *wo_lcs;
+# define w_p_lcs w_onebuf_opt.wo_lcs // 'listchars'
LastSet wo_scriptID[WV_COUNT]; // SIDs for window-local options
# define w_p_scriptID w_onebuf_opt.wo_scriptID
@@ -1003,6 +1007,31 @@ struct window_S {
colnr_T w_old_visual_col; ///< last known start of visual part
colnr_T w_old_curswant; ///< last known value of Curswant
+ // 'listchars' characters. Defaults set in set_chars_option().
+ struct {
+ int eol;
+ int ext;
+ int prec;
+ int nbsp;
+ int space;
+ int tab1; ///< first tab character
+ int tab2; ///< second tab character
+ int tab3; ///< third tab character
+ int trail;
+ int conceal;
+ } w_p_lcs_chars;
+
+ // 'fillchars' characters. Defaults set in set_chars_option().
+ struct {
+ int stl;
+ int stlnc;
+ int vert;
+ int fold;
+ int diff;
+ int msgsep;
+ int eob;
+ } w_p_fcs_chars;
+
/*
* "w_topline", "w_leftcol" and "w_skipcol" specify the offsets for
* displaying the buffer.