From 0c930c2969a8c7cce49382d0acb83e165644af41 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 17 Oct 2017 00:31:43 +0200 Subject: defaults: 'fillchars' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most fonts should have these by now. Both are a significant visual improvement. - Vertical connecting bar `│` is used by tmux, pstree, Windows 7 cmd.exe and nvim-qt.exe. - Middle dot `·` works on Windows 7 cmd.exe, nvim-qt.exe. For reference: tmux uses these chars to draw lines: │ ├ ─ --- src/nvim/globals.h | 4 ++-- src/nvim/options.lua | 2 +- src/nvim/screen.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; } -- cgit