| Date: Tue, 21 Mar 2006 18:03:33 +0000
Write $-free paths in Dump files (Peter Canning).
Diffstat:
M src/cmd/acme/rows.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
--- |
| t@@ -319,7 +319,7 @@ rowdump(Row *row, char *file)
uint q0, q1;
Biobuf *b;
char *buf, *a, *fontname;
- Rune *r;
+ Rune *r, *rp;
Column *c;
Window *w, *w1;
Text *t;
t@@ -417,11 +417,17 @@ rowdump(Row *row, char *file)
Bwrite(b, buf, strlen(buf));
m = min(RBUFSIZE, w->tag.file->b.nc);
bufread(&w->tag.file->b, 0, r, m);
+ if(dodollarsigns && r[0] == '$'){
+ rp = runestrdup(r);
+ expandenv(&rp, (uint*)&m);
+ }else
+ rp = r;
n = 0;
- while(nfile->b.nc; |