Skip to content

Commit

Permalink
remove created tmpdir and fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Jul 26, 2016
1 parent 43e0438 commit 4c868b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -838,11 +838,11 @@ function setup_interface(repl::LineEditREPL; hascolor = repl.hascolor, extra_rep
while c <= sizeof(input) && (input[c] == '\n' || input[c] == ' ' || input[c] == '\t')
c = nextind(input, c)
end
n_newlines = c - oldpos
n_whitespace_chars = c - oldpos
# Skip over prompt prefix if statement starts with it
jl_prompt_len = 7
if c + jl_prompt_len <= sizeof(input) && input[c:c+jl_prompt_len-1] == "julia> "
oldpos += jl_prompt_len + n_newlines
oldpos += jl_prompt_len + n_whitespace_chars
end
ast, pos = Base.syntax_deprecation_warnings(false) do
Base.parse(input, oldpos, raise=false)
Expand Down
1 change: 1 addition & 0 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ begin
wait(c)
@test tmpdirnow == tmpdir
cd(curr_dir)
rm(tmpdir)

write(stdin_write, '\x04')
wait(repltask)
Expand Down

0 comments on commit 4c868b9

Please sign in to comment.