aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-26 09:23:48 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-10-26 15:04:42 +0100
commite912a488cbb9065700316ff0f34cde183c90cbfc (patch)
tree870de5f63a4c1ce501b72897bd0d0f91f65ce4ca /ui-curses.c
parent5958d1e993298920deb02bf61eeb351ca768e3e4 (diff)
downloadvis-e912a488cbb9065700316ff0f34cde183c90cbfc.tar.gz
vis-e912a488cbb9065700316ff0f34cde183c90cbfc.tar.xz
vis: merge editor.c into vis.c
Diffstat (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-curses.c b/ui-curses.c
index 9e67e92..1e3c925 100644
--- a/ui-curses.c
+++ b/ui-curses.c
@@ -63,7 +63,7 @@ typedef struct UiCursesWin UiCursesWin;
typedef struct {
Ui ui; /* generic ui interface, has to be the first struct member */
- Editor *ed; /* editor instance to which this ui belongs */
+ Vis *vis; /* editor instance to which this ui belongs */
UiCursesWin *windows; /* all windows managed by this ui */
UiCursesWin *selwin; /* the currently selected layout */
char prompt_title[255]; /* prompt_title[0] == '\0' if prompt isn't shown */
@@ -606,7 +606,7 @@ static void ui_window_draw_status(UiWin *w) {
if (!win->winstatus)
return;
UiCurses *uic = win->ui;
- Editor *vis = uic->ed;
+ Vis *vis = uic->vis;
bool focused = uic->selwin == win;
const char *filename = win->file->name;
CursorPos pos = view_cursor_getpos(win->view);
@@ -925,9 +925,9 @@ static void ui_prompt_hide(Ui *ui) {
ui_resize_to(ui, uic->width, uic->height);
}
-static bool ui_init(Ui *ui, Editor *ed) {
+static bool ui_init(Ui *ui, Vis *vis) {
UiCurses *uic = (UiCurses*)ui;
- uic->ed = ed;
+ uic->vis = vis;
return true;
}