termux-packages/packages/ngspice/src-frontend-inp.c.patch
2022-01-24 00:41:48 +09:00

12 lines
354 B
Diff

--- a/src/frontend/inp.c
+++ b/src/frontend/inp.c
@@ -1653,7 +1653,7 @@
if (Def_Editor && *Def_Editor)
editor = Def_Editor;
else
- editor = "/usr/bin/vi";
+ editor = "@TERMUX_PREFIX@/bin/vi";
}
}
int len = snprintf(buf, BSIZE_SP - 1, "%s %s", editor, filename);