Browse code
fix splitting
Showing 2 changed files
... | ... |
@@ -102,7 +102,8 @@ |
102 | 102 |
(setf start-pos (1+ end-pos)) |
103 | 103 |
while (< (length parts) (1- count)) |
104 | 104 |
finally |
105 |
- (cond ((and end-pos count) |
|
105 |
+ (cond ((or (and end-pos count) |
|
106 |
+ (< start-pos (length string))) |
|
106 | 107 |
(vector-push (subseq string start-pos) |
107 | 108 |
parts)) |
108 | 109 |
((not end-pos) |