diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:21:46 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:31:52 +0200 |
| commit | 02c18c23d7eb8e520e8584af183ca9b67937d45d (patch) | |
| tree | 9a3caaa42dcb1d79074bd30476a8fc0d1f6207f7 /vis.h | |
| parent | 3a1b14314b9b7c00aa78eee0b2aa5b492f2dd40f (diff) | |
| download | vis-02c18c23d7eb8e520e8584af183ca9b67937d45d.tar.gz vis-02c18c23d7eb8e520e8584af183ca9b67937d45d.tar.xz | |
vis: introduce count iterator to handle interrupted flag
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -352,6 +352,16 @@ int vis_count_get(Vis*); int vis_count_get_default(Vis*, int def); void vis_count_set(Vis*, int count); +typedef struct { + Vis *vis; + int iteration; + int count; +} VisCountIterator; + +VisCountIterator vis_count_iterator_get(Vis*, int def); +VisCountIterator vis_count_iterator_init(Vis*, int count); +bool vis_count_iterator_next(VisCountIterator*); + enum VisMotionType { VIS_MOTIONTYPE_LINEWISE = 1 << 0, VIS_MOTIONTYPE_CHARWISE = 1 << 1, |
