summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorG.raud <graud@gmx.com>2018-02-02 22:31:41 +0100
committerG.raud <graud@gmx.com>2018-02-03 12:23:28 +0100
commit3f1d6e5d542939bbe8b233227f598fd71b56e34d (patch)
tree4b330bc33aa8fb74c8daa714473e9645ba25315e
parent935b7e9ee88b70dab24432ecdd9340f83e044004 (diff)
downloadunison-3f1d6e5d542939bbe8b233227f598fd71b56e34d.zip
unison-3f1d6e5d542939bbe8b233227f598fd71b56e34d.tar.gz
unison-3f1d6e5d542939bbe8b233227f598fd71b56e34d.tar.bz2
Uitext: new action "not" to invert the match condition
-rw-r--r--src/uitext.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uitext.ml b/src/uitext.ml
index 1c8b44b..b6571a7 100644
--- a/src/uitext.ml
+++ b/src/uitext.ml
@@ -438,6 +438,13 @@ let interact prilist rilist =
{replicas = Different ({direction = Merge})} -> true
| _ -> false);
repeat()));
+ (["X";"!"],
+ ("invert the matching condition"),
+ (fun () -> newLine();
+ ripred := begin match !ripred with
+ None -> display "Matching condition not enabled\n"; None
+ | Some p -> Some (fun i -> not (p i)) end;
+ repeat()));
(["U"],
("unmatch all (select current)"),
(fun () -> newLine();