diff options
author | andmarti1424 <andmarti@gmail.com> | 2015-08-20 15:41:31 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2015-08-20 15:41:31 -0300 |
commit | f4348cc76027198777122ab095463305cfa87ceb (patch) | |
tree | dc4eae79be1b9a486ea73f3c07fe047a3fac97fd /src | |
parent | d21ac798170457f1959f66b7cfe5bcb4d2acd5b5 (diff) |
Fix when saving colors to file. '@' are now excluded when saving cellcolor commands
Diffstat (limited to 'src')
-rw-r--r-- | src/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -286,13 +286,13 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) { struct enode * e = new((*pp)->ucolor->fg, (struct enode *)0, (struct enode *)0); decompile(e, 0); uppercase(line); - sprintf(strcolor, "fg=%s", line); + sprintf(strcolor, "fg=%s", &line[1]); free(e); linelim=0; e = new((*pp)->ucolor->bg, (struct enode *)0, (struct enode *)0); decompile(e, 0); uppercase(line); - sprintf(strcolor + strlen(strcolor), " bg=%s", line); + sprintf(strcolor + strlen(strcolor), " bg=%s", &line[1]); free(e); if ((*pp)->ucolor->bold) sprintf(strcolor + strlen(strcolor), " bold=1"); |