mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Allow session- or domain-specific settings for document.brose.forms.editor
This commit is contained in:
parent
0e0bacf0d3
commit
bfe6243bc1
@ -603,8 +603,7 @@ textarea_edit(int op, struct terminal *term_, struct form_state *fs_,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (op == 0 && !textarea_editor) {
|
if (op == 0 && !textarea_editor) {
|
||||||
unsigned char *ed = get_opt_str("document.browse.forms.editor",
|
unsigned char *ed;
|
||||||
NULL);
|
|
||||||
unsigned char *ex;
|
unsigned char *ex;
|
||||||
|
|
||||||
assert(fs_ && doc_view_ && link_ && term_);
|
assert(fs_ && doc_view_ && link_ && term_);
|
||||||
@ -612,6 +611,7 @@ textarea_edit(int op, struct terminal *term_, struct form_state *fs_,
|
|||||||
fn = save_textarea_file(fs_->value);
|
fn = save_textarea_file(fs_->value);
|
||||||
if (!fn) return;
|
if (!fn) return;
|
||||||
|
|
||||||
|
ed = get_opt_str("document.browse.forms.editor", ses);
|
||||||
if (!ed || !*ed) {
|
if (!ed || !*ed) {
|
||||||
ed = getenv("EDITOR");
|
ed = getenv("EDITOR");
|
||||||
if (!ed || !*ed) ed = "vi";
|
if (!ed || !*ed) ed = "vi";
|
||||||
|
Loading…
Reference in New Issue
Block a user