1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix a build error from the last change to textarea_edit

Just a silly thinko.
This commit is contained in:
Miciah Dashiel Butler Masters 2007-08-30 21:48:03 +00:00 committed by Miciah Dashiel Butler Masters
parent 860d3cc5ef
commit 7a96a2eda9

View File

@ -611,7 +611,8 @@ textarea_edit(int op, struct terminal *term_, struct form_state *fs_,
fn = save_textarea_file(fs_->value);
if (!fn) return;
ed = get_opt_str("document.browse.forms.editor", ses);
ed = get_opt_str("document.browse.forms.editor",
doc_view->session);
if (!ed || !*ed) {
ed = getenv("EDITOR");
if (!ed || !*ed) ed = "vi";