diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-07-05 10:28:13 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-07-05 10:49:45 +0200 |
| commit | d6c4d8b155de16abcfcffa2a9bbfa886909b3ec3 (patch) | |
| tree | 8a5c1f3a399b16df9f37f8bfcb236bfee48d6e69 /view.h | |
| parent | 9b6f9c6fa71132506bc509a62b8f262a40a11700 (diff) | |
| download | vis-d6c4d8b155de16abcfcffa2a9bbfa886909b3ec3.tar.gz vis-d6c4d8b155de16abcfcffa2a9bbfa886909b3ec3.tar.xz | |
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).
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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*); /** |
