summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2015-08-20 15:41:31 -0300
committerandmarti1424 <andmarti@gmail.com>2015-08-20 15:41:31 -0300
commitf4348cc76027198777122ab095463305cfa87ceb (patch)
treedc4eae79be1b9a486ea73f3c07fe047a3fac97fd /src
parentd21ac798170457f1959f66b7cfe5bcb4d2acd5b5 (diff)
Fix when saving colors to file. '@' are now excluded when saving cellcolor commands
Diffstat (limited to 'src')
-rw-r--r--src/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.c b/src/file.c
index f70ec09..1e3083d 100644
--- a/src/file.c
+++ b/src/file.c
@@ -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");