diff options
-rw-r--r-- | runtime/doc/options.txt | 8 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 | ||||
-rw-r--r-- | src/nvim/globals.h | 4 | ||||
-rw-r--r-- | src/nvim/options.lua | 2 | ||||
-rw-r--r-- | src/nvim/screen.c | 2 |
5 files changed, 9 insertions, 8 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index a1a361fc85..0345960b0d 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -2377,7 +2377,7 @@ A jump table for the options with a short description can be found at |Q_op|. Only normal file name characters can be used, "/\*?[|<>" are illegal. *'fillchars'* *'fcs'* -'fillchars' 'fcs' string (default "vert:|,fold:-") +'fillchars' 'fcs' string (default "vert:│,fold:·") global {not available when compiled without the |+windows| and |+folding| features} @@ -2387,8 +2387,8 @@ A jump table for the options with a short description can be found at |Q_op|. item default Used for ~ stl:c ' ' or '^' statusline of the current window stlnc:c ' ' or '=' statusline of the non-current windows - vert:c '|' vertical separators |:vsplit| - fold:c '-' filling 'foldtext' + vert:c '│' vertical separators |:vsplit| + fold:c '·' filling 'foldtext' diff:c '-' deleted lines of the 'diff' option Any one that is omitted will fall back to the default. For "stl" and @@ -2396,7 +2396,7 @@ A jump table for the options with a short description can be found at |Q_op|. otherwise. Example: > - :set fillchars=stl:^,stlnc:=,vert:\|,fold:-,diff:- + :set fillchars=stl:^,stlnc:=,vert:│,fold:·,diff:- < This is similar to the default, except that these characters will also be used when there is highlighting. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 7426cd0940..3924dd4ebe 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -35,6 +35,7 @@ a complete and centralized reference of those differences. - 'cscopeverbose' is enabled - 'directory' defaults to ~/.local/share/nvim/swap// (|xdg|), auto-created - 'display' defaults to "lastline" +- 'fillchars' defaults (in effect) to "vert:│,fold:·" - 'formatoptions' defaults to "tcqj" - 'history' defaults to 10000 (the maximum) - 'hlsearch' is set by default diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 3df201b6bf..3254ddfbd7 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -951,8 +951,8 @@ EXTERN int lcs_conceal INIT(= ' '); /* Characters from 'fillchars' option */ EXTERN int fill_stl INIT(= ' '); EXTERN int fill_stlnc INIT(= ' '); -EXTERN int fill_vert INIT(= ' '); -EXTERN int fill_fold INIT(= '-'); +EXTERN int fill_vert INIT(= 9474); // │ +EXTERN int fill_fold INIT(= 183); // · EXTERN int fill_diff INIT(= '-'); /* Whether 'keymodel' contains "stopsel" and "startsel". */ diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 6e8100594d..e0df8eae07 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -812,7 +812,7 @@ return { vi_def=true, redraw={'all_windows'}, varname='p_fcs', - defaults={if_true={vi="vert:|,fold:-"}} + defaults={if_true={vi="vert:│,fold:·"}} }, { full_name='fixendofline', abbreviation='fixeol', diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 2b4317fd49..0b79f8584f 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -7089,7 +7089,7 @@ static int fillchar_vsep(win_T *wp, int *attr) { *attr = win_hl_attr(wp, HLF_C); if (*attr == 0 && fill_vert == ' ') { - return '|'; + return 9474; // default: "│" } else { return fill_vert; } |