diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-27 21:00:32 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-27 21:00:32 +0200 |
| commit | 477fee9285f800b749ed4c0a7a0a6b1abdd66e39 (patch) | |
| tree | 332e8db55aba478c12305166252b2b85c7ad3f99 /vis.c | |
| parent | 431dea6871f88766e66ccaba5775303121a514ed (diff) | |
| download | vis-477fee9285f800b749ed4c0a7a0a6b1abdd66e39.tar.gz vis-477fee9285f800b749ed4c0a7a0a6b1abdd66e39.tar.xz | |
vis: properly set initial window ui options
This should keep the EOF markers visible when another option is enabled.
The whole UI option handling is a bit of a mess. In the longterm more of
the drawing code should be moved into Lua.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -468,6 +468,7 @@ Win *window_new_file(Vis *vis, File *file, enum UiOption options) { return NULL; } file->refcount++; + view_options_set(win->view, view_options_get(win->view)); view_tabwidth_set(win->view, vis->tabwidth); if (vis->windows) @@ -574,7 +575,7 @@ bool vis_window_new(Vis *vis, const char *filename) { File *file = file_new(vis, filename); if (!file) return false; - Win *win = window_new_file(vis, file, UI_OPTION_STATUSBAR); + Win *win = window_new_file(vis, file, UI_OPTION_STATUSBAR|UI_OPTION_SYMBOL_EOF); if (!win) { file_free(vis, file); return false; |
