diff options
| author | Drahflow <drahflow@gmx.de> | 2015-01-07 22:22:46 +0100 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-01-07 22:22:46 +0100 |
| commit | b84800e369887115aaba407630375f94b2be0908 (patch) | |
| tree | c65066a7e4e108545b5cb5f2d796c3cc33736e7d /compiler/standardClient.ey | |
| parent | 354aacc3b66e0dabd6904a8aee350a6aa24b54f3 (diff) | |
Correctly handle last line without newline
Diffstat (limited to 'compiler/standardClient.ey')
| -rw-r--r-- | compiler/standardClient.ey | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey index c842b84..6df429c 100644 --- a/compiler/standardClient.ey +++ b/compiler/standardClient.ey @@ -453,8 +453,8 @@ } /writeall deff { =*f "" ==buffer { - buffer 4096 read cat =buffer - buffer "" eq not + buffer 4096 read -010 cat =buffer + "" eq not } { buffer "\n" str .split ==lines 0 lines len 1 sub range { @@ -462,6 +462,10 @@ } each lines len 1 sub lines * =buffer } loop + + buffer "" eq not { + buffer "\n" str .split |f each + } rep } /eachLine deff > > -- } /makefile deff |
