From d0ed5fef6a4098a7991a7e6ab44076a423721212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 27 Jan 2016 19:00:00 +0100 Subject: vis: clean up count handling There are cases where zero can also be a legitimate count. --- vis.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vis.h') 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 { -- cgit v1.2.3