diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-27 19:00:00 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-28 03:13:59 +0100 |
| commit | d0ed5fef6a4098a7991a7e6ab44076a423721212 (patch) | |
| tree | 1a24edf56f78a9e19d9a4a0de94ebff9f78786cc /vis.h | |
| parent | 84eeabfef92559cb71233bf69db4f1b1fd4f9cd8 (diff) | |
| download | vis-d0ed5fef6a4098a7991a7e6ab44076a423721212.tar.gz vis-d0ed5fef6a4098a7991a7e6ab44076a423721212.tar.xz | |
vis: clean up count handling
There are cases where zero can also be a legitimate count.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -252,10 +252,12 @@ enum VisMotion { */ bool vis_motion(Vis*, enum VisMotion, ...); -/* a count of zero indicates that so far no special count was given. - * operators, motions and text object will always perform their function - * as if a minimal count of 1 was given */ +/* If no count is explicitly specified, operators, motions and + * text object will always perform their function as if a minimal + * count of 1 was given */ +#define VIS_COUNT_UNKNOWN (-1) int vis_count_get(Vis*); +int vis_count_get_default(Vis*, int def); void vis_count_set(Vis*, int count); enum VisMotionType { |
