From 386eac2063bdda79279bbdea2fffcd7fc0ff682a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 12 Jul 2017 19:05:03 +0200 Subject: vis-lua: make selection first class primitives in Lua API --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 557a758..fafabc5 100644 --- a/view.c +++ b/view.c @@ -1161,8 +1161,8 @@ void view_cursors_place(Selection *s, size_t line, size_t col) { view_cursors_to(s, pos); } -void view_selections_anchor(Selection *s) { - s->anchored = true; +void view_selections_anchor(Selection *s, bool anchored) { + s->anchored = anchored; } void view_selection_clear(Selection *s) { -- cgit v1.2.3