mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
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:

committed by
Björn Linse

parent
463da84806
commit
a7bb63c55d
@@ -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. */
|
||||
|
Reference in New Issue
Block a user