Skip to content

Commit

Permalink
Rename window.[ch] to view.[ch]
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Apr 22, 2015
1 parent acb864c commit 625244a
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -554,9 +554,9 @@ A quick overview over the code structure to get you started:
`text-objects.[ch]` | functions take a file position and return a file range
`vis.c` | vi(m) specific editor frontend, program entry point
`editor.[ch]` | editor window management
`window.[ch]` | ui-independent viewport, syntax highlighting, cursor placement
`view.[ch]` | ui-independent viewport, shows part of a file, syntax highlighting, cursor placement
`ui.h` | abstract interface as implemented by user interface
`ui-curses.h` | a terminal / curses based user interface implementation
`ui-curses.[ch]` | a terminal / curses based user interface implementation
`buffer.[ch]` | dynamically growing buffer used for registers and macros
`ring-buffer.[ch]` | fixed size ring buffer used for the jump list
`map.[ch]` | crit-bit tree based map supporting unique prefix lookups and ordered iteration. used to implement `:`-commands.
4 changes: 2 additions & 2 deletions editor.h
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ typedef struct Editor Editor;
typedef struct Win Win;

#include "ui.h"
#include "window.h"
#include "view.h"
#include "register.h"
#include "macro.h"
#include "syntax.h"
@@ -79,7 +79,7 @@ typedef struct {

typedef struct {
size_t (*cmd)(const Arg*); /* a custom movement based on user input from vis.c */
size_t (*view)(View*); /* a movement based on current window content from window.h */
size_t (*view)(View*); /* a movement based on current window content from view.h */
size_t (*txt)(Text*, size_t pos); /* a movement form text-motions.h */
size_t (*file)(File*, size_t pos);
enum {
2 changes: 1 addition & 1 deletion ui.h
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ enum UiOption {
#include <stdbool.h>
#include <stdarg.h>
#include "text.h"
#include "window.h"
#include "view.h"
#include "editor.h"

struct Ui {
2 changes: 1 addition & 1 deletion window.c → view.c
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
#include <errno.h>
#include <regex.h>
#include "editor.h"
#include "window.h"
#include "view.h"
#include "syntax.h"
#include "text.h"
#include "text-motions.h"
File renamed without changes.
2 changes: 1 addition & 1 deletion vis.c
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@ enum {
MOVE_WINDOW_LINE_BOTTOM,
};

/** movements which can be used besides the one in text-motions.h and window.h */
/** movements which can be used besides the one in text-motions.h and view.h */

/* search in forward direction for the word under the cursor */
static size_t search_word_forward(Text *txt, size_t pos);

0 comments on commit 625244a

Please sign in to comment.