Add ‘eob’ option to fillchars

This option allows configuring what character is shown on the empty
lines at the end of a buffer, previously hardcoded to ‘~’
This commit is contained in:
Jack Bracewell
2017-03-24 16:36:46 +00:00
committed by Björn Linse
parent 463da84806
commit a7bb63c55d
5 changed files with 52 additions and 3 deletions

View File

@@ -1532,9 +1532,9 @@ static void win_update(win_T *wp)
} else if (dollar_vcol == -1)
wp->w_botline = lnum;
/* make sure the rest of the screen is blank */
/* put '~'s on rows that aren't part of the file. */
win_draw_end(wp, '~', ' ', row, wp->w_height, HLF_EOB);
// make sure the rest of the screen is blank
// write the 'fill_eob' character to rows that aren't part of the file.
win_draw_end(wp, fill_eob, ' ', row, wp->w_height, HLF_EOB);
}
/* Reset the type of redrawing required, the window has been updated. */