From 34fa064edcf06d03c16c8a20dde9365d9957523e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 25 Oct 2015 20:49:01 +0100 Subject: vis: convert changelist navigation to proper motions --- editor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 098b7fa..2f8b841 100644 --- a/editor.h +++ b/editor.h @@ -85,11 +85,13 @@ typedef struct { } Operator; typedef struct { + /* TODO: merge types / use union to save space */ size_t (*cur)(Cursor*); /* 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)(Vis*, File*, size_t pos); size_t (*vis)(Vis*, Text*, size_t pos); size_t (*view)(Vis*, View*); + size_t (*win)(Vis*, Win*, size_t pos); enum { LINEWISE = 1 << 0, CHARWISE = 1 << 1, @@ -211,6 +213,7 @@ struct File { }; typedef struct { + time_t state; /* state of the text, used to invalidate change list */ size_t index; /* #number of changes */ size_t pos; /* where the current change occured */ } ChangeList; @@ -318,8 +321,6 @@ size_t editor_window_jumplist_prev(Win*); size_t editor_window_jumplist_next(Win*); void editor_window_jumplist_invalidate(Win*); -size_t editor_window_changelist_prev(Win*); -size_t editor_window_changelist_next(Win*); /* rearrange all windows either vertically or horizontally */ void editor_windows_arrange(Editor*, enum UiLayout); /* display a user prompt with a certain title and default text */ -- cgit v1.2.3