aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/view.c b/view.c
index 0b7ce36..a684382 100644
--- a/view.c
+++ b/view.c
@@ -910,6 +910,10 @@ void view_wrapcolumn_set(View *view, int col) {
view->wrapcolumn = col;
}
+int view_wrapcolumn_get(View *view) {
+ return view->wrapcolumn;
+}
+
bool view_breakat_set(View *view, const char *breakat) {
char *copy = strdup(breakat);
if (!copy)
@@ -919,6 +923,10 @@ bool view_breakat_set(View *view, const char *breakat) {
return true;
}
+const char *view_breakat_get(View *view) {
+ return view->breakat;
+}
+
size_t view_screenline_goto(View *view, int n) {
size_t pos = view->start;
for (Line *line = view->topline; --n > 0 && line != view->lastline; line = line->next)