aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-02 15:54:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-04 13:47:50 +0200
commitbab79b3bbdb95579ffc7e447bed3b00f2547505c (patch)
treec05bbc6fc8c40527c1aa11b460a8f89b6db93225 /view.h
parent8f92b98848f9366e78c7aa824615bade83971513 (diff)
downloadvis-bab79b3bbdb95579ffc7e447bed3b00f2547505c.tar.gz
vis-bab79b3bbdb95579ffc7e447bed3b00f2547505c.tar.xz
vis: clean up cursor column display
Diffstat (limited to 'view.h')
-rw-r--r--view.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/view.h b/view.h
index def8bf2..3f994be 100644
--- a/view.h
+++ b/view.h
@@ -40,11 +40,6 @@ struct Line { /* a line on the screen, *not* in the file */
Cell cells[]; /* win->width cells storing information about the displayed characters */
};
-typedef struct {
- size_t line;
- size_t col;
-} CursorPos;
-
View *view_new(Text*, lua_State*);
void view_ui(View*, UiWin*);
/* change associated text displayed in this window */
@@ -68,6 +63,7 @@ size_t view_screenline_up(Cursor*);
size_t view_screenline_begin(Cursor*);
size_t view_screenline_middle(Cursor*);
size_t view_screenline_end(Cursor*);
+
/* move window content up/down, but keep cursor position unchanged unless it is
* on a now invisible line in which case we try to preserve the column position */
size_t view_slide_up(View*, int lines);
@@ -80,6 +76,7 @@ size_t view_scroll_down(View*, int lines);
size_t view_screenline_goto(View*, int n);
const Line *view_lines_get(View*);
+const Line *view_line_get(View*);
/* redraw current cursor line at top/center/bottom of window */
void view_redraw_top(View*);
void view_redraw_center(View*);
@@ -108,8 +105,6 @@ size_t view_horizon_get(View*);
* on this cursor. Additional cursor can be created and manipulated using the
* functions named view_cursors_* */
-/* get main cursor position in terms of screen coordinates */
-CursorPos view_cursor_getpos(View*);
/* get main cursor position in bytes from start of the file */
size_t view_cursor_get(View*);
/* get selection associated with primary cursor */