termux-packages/packages/ngspice/src-frontend-inp.c.patch

12 lines
354 B
Diff
Raw Normal View History

2022-01-20 18:23:39 +01:00
--- 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);