Follow-up, fix variable expansion if unset

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-28 11:42:48 +01:00
1 parent 2ac39e1917
commit c204724353
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@ static int do_edit(char *arg, int creat)
char *editor[] = {
"sensible-editor",
"editor",
"${VISUAL:-${EDITOR:$(command -v mg vi | head -1)}}"
"${VISUAL:-${EDITOR:-$(command -v mg vi | head -1)}}"
};
char path[256];
char *fn;