From 9900fc15074adf9986c599dbdcc5785265479975 Mon Sep 17 00:00:00 2001 From: cohrs Date: Mon, 26 Aug 2002 15:23:06 +0000 Subject: [PATCH] cancelling compound option change Patch from . Accept escape when setting complex option as a cancel, like most other prompts. --- src/options.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/options.c b/src/options.c index 8043db7af..c99ce0e1a 100644 --- a/src/options.c +++ b/src/options.c @@ -2383,6 +2383,8 @@ doset() setinitial, fromfile)) { Sprintf(buf, "Set %s to what?", compopt[opt_indx].name); getlin(buf, buf2); + if (buf2[0] == '\033') + continue; Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); /* pass the buck */ parseoptions(buf, setinitial, fromfile);