diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 12:53:08 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 14:58:07 +0100 |
| commit | 5fb583f035bb8e699e8980e63050ef1f41f94dd9 (patch) | |
| tree | 3aa29e86964663be70e0192a73ef0dbd4d94ae2c /view.c | |
| parent | f295bba61f97ff0d3d43fcc156b78856f715ffad (diff) | |
| download | vis-5fb583f035bb8e699e8980e63050ef1f41f94dd9.tar.gz vis-5fb583f035bb8e699e8980e63050ef1f41f94dd9.tar.xz | |
view: use correct default cell style
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -158,6 +158,8 @@ static void view_clear(View *view) { view->bottomline->next = NULL; view->line = view->topline; view->col = 0; + if (view->ui) + view->cell_blank.style = view->ui->style_get(view->ui, UI_STYLE_DEFAULT); } Filerange view_viewport_get(View *view) { @@ -532,7 +534,6 @@ View *view_new(Text *text) { void view_ui(View *view, UiWin* ui) { view->ui = ui; - view->cell_blank.style = view->ui->style_get(view->ui, UI_STYLE_DEFAULT); } static size_t cursor_set(Cursor *cursor, Line *line, int col) { @@ -851,10 +852,8 @@ void view_options_set(View *view, enum UiOption options) { view->large_file = (options & UI_OPTION_LARGE_FILE); - if (view->ui) { + if (view->ui) view->ui->options_set(view->ui, options); - view->cell_blank.style = view->ui->style_get(view->ui, UI_STYLE_DEFAULT); - } } enum UiOption view_options_get(View *view) { |
