diff options
Diffstat (limited to 'compiler/ropes.nim')
-rwxr-xr-x | compiler/ropes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim index 9c4c5e700..01ca5c81e 100755 --- a/compiler/ropes.nim +++ b/compiler/ropes.nim @@ -328,7 +328,7 @@ proc ropef(frmt: TFormatStr, args: openarray[PRope]): PRope = if (frmt[i] != '$'): inc(i) else: break if i - 1 >= start: - app(result, copy(frmt, start, i - 1)) + app(result, substr(frmt, start, i - 1)) assert(RopeInvariant(result)) proc appf(c: var PRope, frmt: TFormatStr, args: openarray[PRope]) = |