Replaced deprecated repeatChar() with repeat() or spaces().

This commit is contained in:
Hans Raaf 2015-03-04 03:30:43 +01:00
commit 58186f6c1d
21 changed files with 59 additions and 59 deletions

View file

@ -109,7 +109,7 @@ proc highlight(s, match, repl: string, t: tuple[first, last: int],
for i in t.last+1 .. y: stdout.write(s[i])
stdout.write("\n")
if showRepl:
stdout.write(repeatChar(alignment-1), "-> ")
stdout.write(spaces(alignment-1), "-> ")
for i in x .. t.first-1: stdout.write(s[i])
writeColored(repl)
for i in t.last+1 .. y: stdout.write(s[i])