summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorG.raud <graud@gmx.com>2018-02-03 18:13:07 +0100
committerG.raud <graud@gmx.com>2018-02-03 18:27:58 +0100
commitcbc44d26a30004afbf17bc087c0cd8b18b81d8b7 (patch)
treef66dcb3c831806070e55974bbc81d271a19c81de
parentbdea8c56deca16f462e894d8e75359d3957e61be (diff)
downloadunison-cbc44d26a30004afbf17bc087c0cd8b18b81d8b7.zip
unison-cbc44d26a30004afbf17bc087c0cd8b18b81d8b7.tar.gz
unison-cbc44d26a30004afbf17bc087c0cd8b18b81d8b7.tar.bz2
Uitext: make action "invert" print an message if change impossible
-rw-r--r--src/uitext.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uitext.ml b/src/uitext.ml
index 11eedae..c17b52c 100644
--- a/src/uitext.ml
+++ b/src/uitext.ml
@@ -513,7 +513,9 @@ let interact prilist rilist =
(["i"],
("invert direction of propagation and go to next item"),
(fun () ->
- actOnMatching invertdir));
+ actOnMatching
+ ~fail:(Some (fun()->display "Cannot invert direction\n"))
+ invertdir));
(["/";":"],
("skip"),
(fun () ->