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:
@@ -2383,6 +2383,8 @@ doset()
|
|||||||
setinitial, fromfile)) {
|
setinitial, fromfile)) {
|
||||||
Sprintf(buf, "Set %s to what?", compopt[opt_indx].name);
|
Sprintf(buf, "Set %s to what?", compopt[opt_indx].name);
|
||||||
getlin(buf, buf2);
|
getlin(buf, buf2);
|
||||||
|
if (buf2[0] == '\033')
|
||||||
|
continue;
|
||||||
Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2);
|
Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2);
|
||||||
/* pass the buck */
|
/* pass the buck */
|
||||||
parseoptions(buf, setinitial, fromfile);
|
parseoptions(buf, setinitial, fromfile);
|
||||||
|
|||||||
Reference in New Issue
Block a user