https://gitlab.synchro.net/main/sbbs/-/issues/631#note_4043
I'm not doing anything with the return value, I just think that when you use CTRL-C when selecting the editor, it should keep your existing editor or not set it to "None"
So what you're telling me to do is a keep a note of which editor the user has selected in a variable, then check for console.aborted and if true, then set the user.editor back to what the variable value is.
~~~
case 'E':
if(console.noyes(bbs.text(UseExternalEditorQ))) {
if(console.aborted) {
console.aborted = false;
break;
}
user.editor = '';
}
else
bbs.select_editor();
break;
~~~
Why can't select_editor handle CTRL-C itself and return the current editor like select_shell does?
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net