Changeset: 190d59808f86 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=190d59808f86 Modified Files: clients/mapiclient/ReadlineTools.c Branch: default Log Message:
Check the value of VISUAL before EDITOR diffs (15 lines): diff --git a/clients/mapiclient/ReadlineTools.c b/clients/mapiclient/ReadlineTools.c --- a/clients/mapiclient/ReadlineTools.c +++ b/clients/mapiclient/ReadlineTools.c @@ -323,9 +323,9 @@ invoke_editor(int cnt, int key) { fwrite(rl_line_buffer, sizeof(char), rl_end, fp); fflush(fp); - editor = getenv("EDITOR"); + editor = getenv("VISUAL"); if (!editor) { - editor = getenv("VISUAL"); + editor = getenv("EDITOR"); if (!editor) { readline_show_error("invoke_editor: EDITOR/VISUAL env variable not set\n"); goto bailout; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list