aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-27 19:00:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-28 03:13:59 +0100
commitd0ed5fef6a4098a7991a7e6ab44076a423721212 (patch)
tree1a24edf56f78a9e19d9a4a0de94ebff9f78786cc /vis.h
parent84eeabfef92559cb71233bf69db4f1b1fd4f9cd8 (diff)
downloadvis-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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/vis.h b/vis.h
index 37d91c9..64713ef 100644
--- a/vis.h
+++ b/vis.h
@@ -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 {