mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-21 14:47:04 +01:00
SOme fixes, and added WMGetDefaultsFromPath().
This commit is contained in:
1 parent
a28c4144ac
commit
674eb20ec4
7 files changed
+140
-17
No files matched your search
@@ -812,7 +812,13 @@ storeCommandInScript(char *cmd, char *line)
|
||||
while (!feof(f)) {
|
||||
if (!fgets(buffer, 127, f)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (buffer[0] == '\n') {
|
||||
/* don't write empty lines, else the file will grow
|
||||
* indefinitely (one '\n' added at end of file on each save).
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
if (strncmp(buffer, cmd, len)==0) {
|
||||
if (!ok) {
|
||||
fputs(line, fo);
|
||||
|
||||
Reference in new issue
Block a user