From bfcf2210da1f83d4138425febf96d3afb60fdfac Mon Sep 17 00:00:00 2001 From: Philipp Emanuel Weidmann Date: Sun, 4 Jun 2017 17:36:55 +0530 Subject: Add option to hide EOF marker --- vis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index dc2c984..f3cd6d6 100644 --- a/vis.c +++ b/vis.c @@ -306,7 +306,7 @@ static void window_draw_cursorline(Win *win) { return; if (view_cursors_multiple(view)) return; - + int width = view_width_get(view); CellStyle style = win->ui->style_get(win->ui, UI_STYLE_CURSOR_LINE); Cursor *cursor = view_cursors_primary_get(view); @@ -420,7 +420,7 @@ static void window_draw_eof(Win *win) { return; CellStyle style = win->ui->style_get(win->ui, UI_STYLE_EOF); for (Line *l = view_lines_last(view)->next; l; l = l->next) { - strcpy(l->cells[0].data, "~"); + strcpy(l->cells[0].data, view_symbol_eof_get(view)); l->cells[0].style = style; } } -- cgit v1.2.3