aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/types.h b/types.h
index 27b3d8e..d9c528b 100644
--- a/types.h
+++ b/types.h
@@ -89,6 +89,11 @@ typedef struct match_s {
struct match_s **atme;
#endif
int refcount;
+ // If skip_replacement is set to 1, that means the user wants to not print
+ // the replaced text when printing this match:
+ // TODO: this is a bit hacky, there is probably a better way to go about
+ // this but it's less hacky that mutating the match objects more drastically
+ unsigned int skip_replacement:1;
} match_t;
//