aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-17 22:50:44 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-18 16:50:39 +0100
commita03dcacbf87b283a57eabbde4a1b27a58bb0927d (patch)
tree7531f3840f2c5484345eb2c10f89822c8608c729 /view.c
parentd55bdfe229e8e1fcda4a15dd977f0abce7a40ccc (diff)
downloadvis-a03dcacbf87b283a57eabbde4a1b27a58bb0927d.tar.gz
vis-a03dcacbf87b283a57eabbde4a1b27a58bb0927d.tar.xz
vis-lua: promote vis to a real object
That is from now on use vis:method instead of vis.method
Diffstat (limited to 'view.c')
-rw-r--r--view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/view.c b/view.c
index d13a968..a577826 100644
--- a/view.c
+++ b/view.c
@@ -1337,3 +1337,7 @@ void view_selections_set(Selection *s, Filerange *r) {
}
view_draw(s->view);
}
+
+Text *view_text(View *view) {
+ return view->text;
+}