From 5fd810ecfe499e10841b1d428241eb4040f83759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 22 Apr 2015 10:25:19 +0200 Subject: Better variable naming (VisText -> File) Therefore vis->win->text->data becomes vis->win->file->text. --- editor.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 64f605c..49bb89b 100644 --- a/editor.h +++ b/editor.h @@ -16,7 +16,7 @@ typedef struct EditorWin EditorWin; #include "ring-buffer.h" #include "map.h" -typedef struct VisText VisText; +typedef struct File File; typedef union { bool b; @@ -81,7 +81,7 @@ typedef struct { size_t (*cmd)(const Arg*); /* a custom movement based on user input from vis.c */ size_t (*win)(Win*); /* a movement based on current window content from window.h */ size_t (*txt)(Text*, size_t pos); /* a movement form text-motions.h */ - size_t (*vistxt)(VisText*, size_t pos); + size_t (*file)(File*, size_t pos); enum { LINEWISE = 1 << 0, CHARWISE = 1 << 1, @@ -191,11 +191,11 @@ enum Mark { MARK_LAST, }; -struct VisText { - Text *data; +struct File { + Text *text; int refcount; Mark marks[MARK_LAST]; - VisText *next, *prev; + File *next, *prev; }; typedef struct { @@ -206,7 +206,7 @@ typedef struct { struct EditorWin { Editor *editor; /* editor instance to which this window belongs */ UiWin *ui; - VisText *text; /* underlying text management */ + File *file; /* file being displayed in this window */ Win *win; /* window for the text area */ ViewEvent events; RingBuffer *jumplist; /* LRU jump management */ @@ -216,7 +216,7 @@ struct EditorWin { struct Editor { Ui *ui; - VisText *texts; + File *files; EditorWin *windows; /* list of windows */ EditorWin *win; /* currently active window */ Syntax *syntaxes; /* NULL terminated array of syntax definitions */ -- cgit v1.2.3