Skip to content

Commit

Permalink
fix a use of String(::IObuffer) (JuliaLang#22976)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet authored and KristofferC committed Jul 29, 2017
1 parent 8d752a0 commit 96a3005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/repl/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ function history_set_backward(s::SearchState, backward)
s.backward = backward
end

input_string(s::SearchState) = String(s.query_buffer)
input_string(s::SearchState) = String(take!(copy(s.query_buffer)))

function reset_state(s::SearchState)
if s.query_buffer.size != 0
Expand Down

0 comments on commit 96a3005

Please sign in to comment.