From d6c4d8b155de16abcfcffa2a9bbfa886909b3ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 5 Jul 2017 10:28:13 +0200 Subject: vis: make sure all selections have same anchored state With the current model the differences between normal and visual mode is that in the latter selections are anchored (meaning one endpoint remains fixed), while in normal mode both endpoints can in principle be updated simultaneously (currently they are always colapsed to a singleton selection, giving the impression of cursors). --- view.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'view.h') diff --git a/view.h b/view.h index 60a41f9..f676f34 100644 --- a/view.h +++ b/view.h @@ -147,9 +147,10 @@ void view_selections_dispose_all(View*); void view_selections_normalize(View*); /** * Replace currently active selections. - * @param The array of ``Filerange``s. + * @param array The Array of ``Filerange``s. + * @param anchored Whether *all* selection should be anchored. */ -void view_selections_set_all(View*, Array*); +void view_selections_set_all(View*, Array*, bool anchored); /** Get array containing a ``Fileranges`` for each selection. */ Array view_selections_get_all(View*); /** -- cgit v1.2.3