mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +03:00
Merge branch 'bugfix-lune-allcases'
Fix *all* cases of the ++lune jet
This commit is contained in:
commit
afcb71742d
@ -21,11 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pos_w == 0) {
|
if (pos_w == 0) {
|
||||||
if (u3r_byte(0, lub) == 10) {
|
return u3nc(u3_nul, lin);
|
||||||
return u3nc(u3_nul, lin);
|
|
||||||
} else {
|
|
||||||
return u3m_error("noeol");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (--pos_w) {
|
while (--pos_w) {
|
||||||
@ -37,7 +33,7 @@
|
|||||||
|
|
||||||
if (u3r_byte(pos_w, lub) == 10) {
|
if (u3r_byte(pos_w, lub) == 10) {
|
||||||
return u3nc(u3_nul,
|
return u3nc(u3_nul,
|
||||||
u3nc(u3qc_cut(3, pos_w, (end_w - pos_w), lub), lin));
|
u3nc(u3qc_cut(3, (pos_w + 1), (end_w - pos_w - 1), lub), lin));
|
||||||
}
|
}
|
||||||
|
|
||||||
return u3nc(u3qc_cut(3, pos_w, (end_w - pos_w), lub), lin);
|
return u3nc(u3qc_cut(3, pos_w, (end_w - pos_w), lub), lin);
|
||||||
|
Loading…
Reference in New Issue
Block a user