File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,10 @@ static REBYTE seed_str[SEED_LEN] = {
541
541
542
542
// Copy chars thru end-of-line (or end of buffer):
543
543
while (index < len ) {
544
- if ((* dp ++ = bp [index ++ ]) == '\n' ) break ;
544
+ if ((* dp ++ = bp [index ++ ]) == '\n' ) {
545
+ index -- ;
546
+ break ;
547
+ }
545
548
}
546
549
}
547
550
}
@@ -588,7 +591,10 @@ static REBYTE seed_str[SEED_LEN] = {
588
591
589
592
// Copy chars thru end-of-line (or end of buffer):
590
593
while (index < len ) {
591
- if ((* dp ++ = bp [index ++ ]) == '\n' ) break ;
594
+ if ((* dp ++ = bp [index ++ ]) == '\n' ) {
595
+ index -- ;
596
+ break ;
597
+ }
592
598
}
593
599
}
594
600
}
Original file line number Diff line number Diff line change @@ -466,6 +466,23 @@ Rebol [
466
466
467
467
===end-group===
468
468
469
+ ===start-group=== "DETAB / ENTAB"
470
+
471
+ --test-- "DETAB"
472
+ --assert " A^/ B" = detab "^- A^/^- B"
473
+ --assert " A^/ Š" = detab "^- A^/^- Š"
474
+ --assert " A^/ B" = detab /size "^- A^/^- B" 2
475
+ --assert " A^/ Š" = detab /size "^- A^/^- Š" 2
476
+ --test-- "ENTAB"
477
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2216
478
+ --assert "^- A^/^- B" = entab { A^/ B}
479
+ --assert "^- A^/^- Š" = entab { A^/ Š}
480
+ --assert "^-^- A^/^-^- B" = entab /size { A^/ B} 2
481
+ --assert "^-^- A^/^-^- Š" = entab /size { A^/ Š} 2
482
+ --assert "^-^-^- A" = entab { ^- A}
483
+
484
+ ===end-group===
485
+
469
486
===start-group=== "AS coercion"
470
487
471
488
--test-- "AS datatype! any-string!"
You can’t perform that action at this time.
0 commit comments