Permalink
Browse files

Minor updates and code cleanup.

  • Loading branch information...
1 parent 01ea276 commit 316f2fca24736328f2e649d59918d6d632c3a0fb @nfoti nfoti committed Mar 6, 2013
Showing with 2 additions and 7 deletions.
  1. +2 −7 src/UI.jl
View
@@ -121,13 +121,8 @@ function print_context(path::String, line::Int, nsurr::Int)
endl = min(length(src), line+nsurr)
#println("\nstartl: $startl, endl: $endl")
for li in startl:endl
- #print((li == line) ? " --> " : " ")
- #@printf("%-4i %s",li,src[li])
- if li == line
- print("$(li) --> $(src[li])")
- else
- print("$(li) $(src[li])")
- end
+ print((li == line) ? " --> " : " ")
+ @printf(" %-4i %s",li,src[li])
end
print("\n")
catch err

0 comments on commit 316f2fc

Please sign in to comment.