cancelling compound option change

Patch from <Someone>.  Accept escape when setting complex option as a cancel,
like most other prompts.
This commit is contained in:
cohrs
2002-08-26 15:23:06 +00:00
parent ea31aa03dc
commit 9900fc1507

View File

@@ -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);