From d31d2e89850d3132850e0f2e1ce6d973bd482073 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 18:23:18 -0800 Subject: Added interactive confirmation mode for replacing text --- types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'types.h') 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; // -- cgit v1.2.3