mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Beautify code
This commit is contained in:
1 parent
60d0ca1075
commit
bf2272c6b3
1 file changed
+5
-7
+5
-7
@@ -221,13 +221,11 @@ int serv_edit(char *arg)
|
|||||||
if (!fexist(path))
|
if (!fexist(path))
|
||||||
return serv_list(NULL);
|
return serv_list(NULL);
|
||||||
|
|
||||||
if (systemf("[ -x \"$(command -v sensible-editor)\" ] && sensible-editor %s", path) != 0)
|
return systemf("[ -x \"$(command -v sensible-editor)\" ] && sensible-editor %s", path) || \
|
||||||
if (systemf("[ -x \"$(command -v editor)\" ] && editor %s", path) != 0)
|
systemf("[ -x \"$(command -v editor)\" ] && editor %s", path) || \
|
||||||
if (systemf("${VISUAL:-${EDITOR:-$(command -v vi)}} %s", path) != 0)
|
systemf("${VISUAL:-${EDITOR:-$(command -v vi)}} %s", path) || \
|
||||||
if (systemf("[ -x \"$(command -v mg)\" ] && mg %s", path) != 0)
|
systemf("[ -x \"$(command -v mg)\" ] && mg %s", path) || \
|
||||||
systemf("[ -x \"$(command -v vi)\" ] && vi %s", path);
|
systemf("[ -x \"$(command -v vi)\" ] && vi %s", path);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user