1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 12:54:20 +01:00

SOme fixes, and added WMGetDefaultsFromPath().

This commit is contained in:
dan
1999-04-18 19:41:42 +00:00
parent a28c4144ac
commit 674eb20ec4
7 changed files with 140 additions and 17 deletions

View File

@@ -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);