diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-22 09:28:40 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-22 12:42:19 +0100 |
| commit | 75ff22469b21e72a4c9126d89cfa3623af1784fd (patch) | |
| tree | 0cfd4b74d377735db2d7f81d34b630b1f79f2a0a /vis-core.h | |
| parent | a08d2fa4e547341e9298b0eaf7678f1dc67f0612 (diff) | |
| download | vis-75ff22469b21e72a4c9126d89cfa3623af1784fd.tar.gz vis-75ff22469b21e72a4c9126d89cfa3623af1784fd.tar.xz | |
vis: add exact count motion flag
Some motions should fail (i.e. keep the initial position) when
the specified count can not be satisfied exactly.
Examples include t, f, T, and F.
Fix #497
Diffstat (limited to 'vis-core.h')
| -rw-r--r-- | vis-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -69,6 +69,7 @@ typedef struct { /* Motion implementation, takes a cursor postion and returns a LINEWISE_INCLUSIVE = 1 << 3, /* inclusive, but only if motion is linewise? */ IDEMPOTENT = 1 << 4, /* does the returned postion remain the same if called multiple times? */ JUMP = 1 << 5, /* should the resulting position of the motion be recorded in the jump list? */ + COUNT_EXACT = 1 << 6, /* fail (keep initial position) if count can not be satisfied exactly */ } type; void *data; } Movement; |
